Fix codMedep null in genera ord lav
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-11-12 12:34:45 +01:00
parent eea71a91a8
commit 724637d437

View File

@@ -83,7 +83,7 @@ public class GeneraOrdLav {
"where gtb_anag.cod_anag = %s", "where gtb_anag.cod_anag = %s",
codVdes, codAnag); codVdes, codAnag);
HashMap<String, Object> datiDest = UtilityDB.executeSimpleQueryOnlyFirstRow(conn, sql); HashMap<String, Object> datiDest = UtilityDB.executeSimpleQueryOnlyFirstRow(conn, sql);
if (datiDest != null && datiDest.size() > 0) { if (datiDest != null && !datiDest.isEmpty()) {
desCom = UtilityHashMap.getValueIfExists(datiDest, "descr_com"); desCom = UtilityHashMap.getValueIfExists(datiDest, "descr_com");
isTerzista = UtilityHashMap.getValueIfExists(datiDest, "is_terzista"); isTerzista = UtilityHashMap.getValueIfExists(datiDest, "is_terzista");
} }
@@ -93,6 +93,10 @@ public class GeneraOrdLav {
// Se c'è il check del terzista e il fornitore è un terzista allora // Se c'è il check del terzista e il fornitore è un terzista allora
// bisognerà acquisire il deposito del terzista // bisognerà acquisire il deposito del terzista
codMdep = getDepositoTerzista(conn, codAnag, codVdes); codMdep = getDepositoTerzista(conn, codAnag, codVdes);
if (UtilityString.isNullOrEmpty(codMdep)) {
codMdep = dtbOrdt.getCodMdep();
}
} }
} }
// Verifica esistenza lavoratore associato all'utente connesso // Verifica esistenza lavoratore associato all'utente connesso
@@ -1072,7 +1076,7 @@ public class GeneraOrdLav {
.setCodProdPri(ordT.getCodProd()); .setCodProdPri(ordT.getCodProd());
ordT.getDtbOrdSteps().add(ordStep); ordT.getDtbOrdSteps().add(ordStep);
return; return; // F3678 SMSM301637A
} }
/* /*