Merge pull request #21722 from Easya-Solutions/new-expedition-card-eat-sell-by-show
NEW show SellBy/EatBy dates for each batch product in shipment card
This commit is contained in:
commit
06b9b684af
@ -1315,10 +1315,10 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
$detail = '';
|
$detail = '';
|
||||||
$detail .= $langs->trans("Batch").': '.$dbatch->batch;
|
$detail .= $langs->trans("Batch").': '.$dbatch->batch;
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
if (empty($conf->global->PRODUCT_DISABLE_SELLBY) && !empty($dbatch->sellby)) {
|
||||||
$detail .= ' - '.$langs->trans("SellByDate").': '.dol_print_date($dbatch->sellby, "day");
|
$detail .= ' - '.$langs->trans("SellByDate").': '.dol_print_date($dbatch->sellby, "day");
|
||||||
}
|
}
|
||||||
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
if (empty($conf->global->PRODUCT_DISABLE_EATBY) && !empty($dbatch->eatby)) {
|
||||||
$detail .= ' - '.$langs->trans("EatByDate").': '.dol_print_date($dbatch->eatby, "day");
|
$detail .= ' - '.$langs->trans("EatByDate").': '.dol_print_date($dbatch->eatby, "day");
|
||||||
}
|
}
|
||||||
$detail .= ' - '.$langs->trans("Qty").': '.$dbatch->qty;
|
$detail .= ' - '.$langs->trans("Qty").': '.$dbatch->qty;
|
||||||
@ -1526,6 +1526,12 @@ if ($action == 'create') {
|
|||||||
} else {
|
} else {
|
||||||
print 'TableLotIncompleteRunRepairWithParamStandardEqualConfirmed';
|
print 'TableLotIncompleteRunRepairWithParamStandardEqualConfirmed';
|
||||||
}
|
}
|
||||||
|
if (empty($conf->global->PRODUCT_DISABLE_SELLBY) && !empty($dbatch->sellby)) {
|
||||||
|
print ' - '.$langs->trans("SellByDate").': '.dol_print_date($dbatch->sellby, "day");
|
||||||
|
}
|
||||||
|
if (empty($conf->global->PRODUCT_DISABLE_EATBY) && !empty($dbatch->eatby)) {
|
||||||
|
print ' - '.$langs->trans("EatByDate").': '.dol_print_date($dbatch->eatby, "day");
|
||||||
|
}
|
||||||
print ' ('.$dbatch->qty.')';
|
print ' ('.$dbatch->qty.')';
|
||||||
$quantityToBeDelivered -= $deliverableQty;
|
$quantityToBeDelivered -= $deliverableQty;
|
||||||
if ($quantityToBeDelivered < 0) {
|
if ($quantityToBeDelivered < 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user