aggiunto controllo su movimento senza codice
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-12-03 16:40:04 +01:00
parent dfbf2e8d33
commit 4603bc17ed

View File

@@ -280,6 +280,9 @@ public class RossoGarganoSyncService {
}
Object pnCodAnag = UtilityHashMap.getValueIfExists(c, "PN_COD_ANAG");
if (UtilityString.isNullOrEmpty(pnCodAnag))
throw new Exception(String.format("Nessun conto/codice anagrafico trovato sul movimento del %s n. %s)", pnDataCompetenza, pnNroReg));
sql = Query.format(
"SELECT ctb_cont.cod_ccon\n" +
"FROM ctb_cont\n" +
@@ -306,10 +309,10 @@ public class RossoGarganoSyncService {
codCcon = UtilityHashMap.getValueIfExists(datiAnag, "cod_ccon");
tipoAnag = UtilityHashMap.getValueIfExists(datiAnag, "tipo_anag");
if (UtilityString.isNullOrEmpty(codAnag))
throw new Exception(String.format("Codice cliente\fornitore non codificato (diacod: %s)", pnCodAnag));
throw new Exception(String.format("Codice cliente/fornitore non codificato (diacod: %s)", pnCodAnag));
if (UtilityString.isNullOrEmpty(codCcon))
throw new Exception(String.format("Codice conto non agganciato al cliente\fornitore %s (diacod: %s)", codAnag, pnCodAnag));
throw new Exception(String.format("Codice conto non agganciato al cliente/fornitore %s (diacod: %s)", codAnag, pnCodAnag));
}
String sezionaleIva = UtilityHashMap.getValueIfExists(c, "PN_SEZIONALE_IVA");