Merge pull request #17796 from atm-john/13.0_fix_warehouse_id

FIX  Warehouse id
This commit is contained in:
Laurent Destailleur 2021-06-04 09:09:18 +02:00 committed by GitHub
commit 935ba6ae18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2211,7 +2211,8 @@ if ($action == 'create')
// only show lot numbers from src warehouse when shipping from multiple warehouses
$line->fetch($detail_batch->fk_expeditiondet);
}
print '<td>'.$formproduct->selectLotStock($detail_batch->fk_origin_stock, 'batchl'.$detail_batch->fk_expeditiondet.'_'.$detail_batch->fk_origin_stock, '', 1, 0, $lines[$i]->fk_product, $line->entrepot_id).'</td>';
$entrepot_id = !empty($detail_batch->entrepot_id)?$detail_batch->entrepot_id:$lines[$i]->entrepot_id;
print '<td>'.$formproduct->selectLotStock($detail_batch->fk_origin_stock, 'batchl'.$detail_batch->fk_expeditiondet.'_'.$detail_batch->fk_origin_stock, '', 1, 0, $lines[$i]->fk_product, $entrepot_id).'</td>';
print '</tr>';
}
// add a 0 qty lot row to be able to add a lot