migliorato messaggio d'errore

This commit is contained in:
2024-04-10 16:02:01 +02:00
parent 10508da2f4
commit 5c7254a827

View File

@@ -254,8 +254,11 @@ public class RossoGarganoSyncService {
codAnag = UtilityHashMap.getValueIfExists(datiAnag, "cod_anag"); codAnag = UtilityHashMap.getValueIfExists(datiAnag, "cod_anag");
codCcon = UtilityHashMap.getValueIfExists(datiAnag, "cod_ccon"); codCcon = UtilityHashMap.getValueIfExists(datiAnag, "cod_ccon");
tipoAnag = UtilityHashMap.getValueIfExists(datiAnag, "tipo_anag"); tipoAnag = UtilityHashMap.getValueIfExists(datiAnag, "tipo_anag");
if (UtilityString.isNullOrEmpty(codAnag))
throw new Exception(String.format("Codice cliente\fornitore non codificato (diacod: %s)", pnCodAnag));
if (UtilityString.isNullOrEmpty(codCcon)) if (UtilityString.isNullOrEmpty(codCcon))
throw new Exception(String.format("Codice conto non agganciato al cliente %s ( %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"); String sezionaleIva = UtilityHashMap.getValueIfExists(c, "PN_SEZIONALE_IVA");