Update card.php

This commit is contained in:
Laurent Destailleur 2017-10-27 02:26:37 +02:00 committed by GitHub
parent eaafe83ae4
commit 78e3c63ead

View File

@ -1218,9 +1218,9 @@ if ($action == 'create')
print $langs->trans("Batch").': '.$productlotObject->getNomUrl(1);
print ' ('.$dbatch->qty.')';
}
else
else // When lot not found in lot table (this can happen with old record)
{
print $dbatch->batch.' ('.$dbatch->qty.')';
print $langs->trans("Batch").': '.$dbatch->batch.' ('.$dbatch->qty.')';
}
$quantityToBeDelivered -= $deliverableQty;
if ($quantityToBeDelivered < 0)