migliorato messaggio d'errore
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user