aggiunto controllo su movimento senza codice
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user