fix bug PMP per entity

wrong alias in SQL query
This commit is contained in:
antonin_tdj 2021-05-07 18:28:30 +02:00 committed by GitHub
parent ff14d2817d
commit 35c8bb6b29
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,"; $sql .= " p.stock,";
} }
if ($separatedEntityPMP) { 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 { } else {
$sql .= " p.pmp, p.datec, p.tms, p.import_key, p.entity, p.desiredstock, p.tobatch, p.batch_mask, p.fk_unit,"; $sql .= " p.pmp, p.datec, p.tms, p.import_key, p.entity, p.desiredstock, p.tobatch, p.batch_mask, p.fk_unit,";
} }