Error and solution in the creation of receipts reverses the expiration date and sale date

In dolibarr v14.0.3 and v14.0.4 with products configured with batch/series handling expiration dates, when creating a receipt from the purchase order by inserting the batch data, purchase date and expiration date in the product receipt section (htdocs/fourn/commande/dispatch.php), the expiration date and sale date data are reversed when moving to the receipt capture (htdocs/reception/card.php), if the information is corrected in this capture, when validating the receipt it reverses the dates again leaving the incorrect batch information.

The error is in the two files indicated, where the SELLBY variable corresponds to the values related to dluo, while EATBY corresponds to the dlc values, these are inverted in some parts, modifying in both files with the correct relationships the error was corrected.

Hello,

Can you post it on Github : Issues · Dolibarr/dolibarr · GitHub ?

Thanks a lot.