Fix ordine con data errata in saveProductionPlan

This commit is contained in:
2024-08-12 19:19:23 +02:00
parent ba7c89e626
commit 81b2edde0c

View File

@@ -307,9 +307,11 @@ public class ProductionPlanService {
"SELECT num_ord, qta_prod\n" +
"FROM dtb_ordt\n" +
"WHERE cod_jcom = %s\n" +
" AND cod_prod = %s",
" AND cod_prod = %s\n" +
" AND data_ord = %s",
saveProductionPlanDTO.getCodJcom(),
saveProductionPlanDTO.getCodProd()
saveProductionPlanDTO.getCodProd(),
saveProductionPlanDTO.getDataOrd()
);
if (numOrdL == null || numOrdL == 0) {