fix update extrafield of expedition det
This commit is contained in:
parent
50a9f03c7d
commit
cadf79be75
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ if (empty($reshook)) {
|
|||
$qty = "qtyl".$detail_batch->fk_expeditiondet.'_'.$detail_batch->id;
|
||||
$batch_id = GETPOST($batch, 'int');
|
||||
$batch_qty = GETPOST($qty, 'int');
|
||||
if (!empty($batch_id) && ($batch_id != $detail_batch->fk_origin_stock || $batch_qty != $detail_batch->qty)) {
|
||||
if (!empty($batch_id) && ($batch_id != $detail_batch->fk_origin_stock || $batch_qty > 0)) {
|
||||
if ($lotStock->fetch($batch_id) > 0 && $line->fetch($detail_batch->fk_expeditiondet) > 0) { // $line is ExpeditionLine
|
||||
if ($lines[$i]->entrepot_id != 0) {
|
||||
// allow update line entrepot_id if not multi warehouse shipping
|
||||
|
|
|
|||
Loading…
Reference in a new issue