Merge pull request #17534 from ibuiv/patch-8

Fix bug PMP per entity
This commit is contained in:
Laurent Destailleur 2021-05-11 19:13:53 +02:00 committed by GitHub
commit fe21c318d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2208,7 +2208,7 @@ class Product extends CommonObject
$sql .= " p.stock,";
}
if ($separatedEntityPMP) {
$sql .= " pa.pmp, p.datec, p.tms, p.import_key, p.entity, p.desiredstock, p.tobatch, p.batch_mask, p.fk_unit,";
$sql .= " ppe.pmp, p.datec, p.tms, p.import_key, p.entity, p.desiredstock, p.tobatch, p.batch_mask, p.fk_unit,";
} else {
$sql .= " p.pmp, p.datec, p.tms, p.import_key, p.entity, p.desiredstock, p.tobatch, p.batch_mask, p.fk_unit,";
}