Fix codMedep null in genera ord lav
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -83,7 +83,7 @@ public class GeneraOrdLav {
|
||||
"where gtb_anag.cod_anag = %s",
|
||||
codVdes, codAnag);
|
||||
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");
|
||||
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
|
||||
// bisognerà acquisire il deposito del terzista
|
||||
codMdep = getDepositoTerzista(conn, codAnag, codVdes);
|
||||
|
||||
if (UtilityString.isNullOrEmpty(codMdep)) {
|
||||
codMdep = dtbOrdt.getCodMdep();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Verifica esistenza lavoratore associato all'utente connesso
|
||||
@@ -1072,7 +1076,7 @@ public class GeneraOrdLav {
|
||||
.setCodProdPri(ordT.getCodProd());
|
||||
|
||||
ordT.getDtbOrdSteps().add(ordStep);
|
||||
return;
|
||||
return; // F3678 SMSM301637A
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user