Merge pull request #32613 from Easya-Solutions/20_fix_batch_duplicate_lines
fix: avoid duplicate lines in inventory
This commit is contained in:
commit
b3a280cced
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ class Inventory extends CommonObject
|
|||
// Scan existing stock to prefill the inventory
|
||||
$sql = "SELECT ps.rowid, ps.fk_entrepot as fk_warehouse, ps.fk_product, ps.reel,";
|
||||
if (isModEnabled('productbatch')) {
|
||||
$sql .= " pb.batch as batch, pb.qty as qty,";
|
||||
$sql .= " COALESCE(pb.batch, '') as batch, pb.qty as qty,";
|
||||
} else {
|
||||
$sql .= " '' as batch, 0 as qty,";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue