diff --git a/db/routines/vn/procedures/supplierPackaging_ReportSource.sql b/db/routines/vn/procedures/supplierPackaging_ReportSource.sql index a20905552..ab05e6aa0 100644 --- a/db/routines/vn/procedures/supplierPackaging_ReportSource.sql +++ b/db/routines/vn/procedures/supplierPackaging_ReportSource.sql @@ -69,7 +69,7 @@ BEGIN SUM(`out`), NULL, AVG(buyingValue) - FROM supplierPackaging + FROM supplierPackaging sp JOIN supplier s ON s.id = sp.supplierFk WHERE s.nif = vNif AND landed < vFromDated