adapt dispatch for serial numbers
This commit is contained in:
parent
6a242edd8b
commit
faf7b1d659
@ -855,7 +855,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
// Already dispatched
|
// Already dispatched
|
||||||
print '<td class="right">'.$products_dispatched[$objp->rowid].'</td>';
|
print '<td class="right">'.$products_dispatched[$objp->rowid].'</td>';
|
||||||
|
|
||||||
if (!empty($conf->productbatch->enabled) && $objp->tobatch == 1) {
|
if (!empty($conf->productbatch->enabled) && $objp->tobatch > 0) {
|
||||||
$type = 'batch';
|
$type = 'batch';
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
print '</td>'; // Qty to dispatch
|
print '</td>'; // Qty to dispatch
|
||||||
@ -967,7 +967,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if (!empty($conf->productbatch->enabled) && $objp->tobatch == 1) {
|
if (!empty($conf->productbatch->enabled) && $objp->tobatch > 0) {
|
||||||
$type = 'batch';
|
$type = 'batch';
|
||||||
print img_picto($langs->trans('AddStockLocationLine'), 'split.png', 'class="splitbutton" onClick="addDispatchLine('.$i.', \''.$type.'\')"');
|
print img_picto($langs->trans('AddStockLocationLine'), 'split.png', 'class="splitbutton" onClick="addDispatchLine('.$i.', \''.$type.'\')"');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user