Skip to content

Commit

Permalink
Eliminata virgola alla fine della prima riga dell'indirizzo del desti…
Browse files Browse the repository at this point in the history
…natario avviso pagamento.
  • Loading branch information
pintorig committed Mar 14, 2022
1 parent b01fd88 commit b2c0da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,10 @@ public static void impostaAnagraficaDebitore(Anagrafica anagraficaDebitore, Avvi
String localitaDebitore = StringUtils.isNotEmpty(anagraficaDebitore.getLocalita()) ? anagraficaDebitore.getLocalita() : "";
String provinciaDebitore = StringUtils.isNotEmpty(anagraficaDebitore.getProvincia()) ? (" (" +anagraficaDebitore.getProvincia() +")" ) : "";
// Indirizzo piu' civico impostati se non e' vuoto l'indirizzo
String indirizzoCivicoDebitore = StringUtils.isNotEmpty(indirizzoDebitore) ? indirizzoDebitore + " " + civicoDebitore : "";
String indirizzoDestinatario = StringUtils.isNotEmpty(indirizzoDebitore) ? indirizzoDebitore + " " + civicoDebitore : "";
// capCittaProv impostati se e' valorizzata la localita'
String capCittaDebitore = StringUtils.isNotEmpty(localitaDebitore) ? (capDebitore + " " + localitaDebitore + provinciaDebitore) : "";

// Inserisco la virgola se la prima riga non e' vuota
String indirizzoDestinatario = StringUtils.isNotEmpty(indirizzoCivicoDebitore) ? indirizzoCivicoDebitore + "," : "";
input.setNomeCognomeDestinatario(anagraficaDebitore.getRagioneSociale());
input.setCfDestinatario(anagraficaDebitore.getCodUnivoco().toUpperCase());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,10 @@ public static void impostaAnagraficaDebitore(Anagrafica anagraficaDebitore, Avvi
String localitaDebitore = StringUtils.isNotEmpty(anagraficaDebitore.getLocalita()) ? anagraficaDebitore.getLocalita() : "";
String provinciaDebitore = StringUtils.isNotEmpty(anagraficaDebitore.getProvincia()) ? (" (" +anagraficaDebitore.getProvincia() +")" ) : "";
// Indirizzo piu' civico impostati se non e' vuoto l'indirizzo
String indirizzoCivicoDebitore = StringUtils.isNotEmpty(indirizzoDebitore) ? indirizzoDebitore + " " + civicoDebitore : "";
String indirizzoDestinatario = StringUtils.isNotEmpty(indirizzoDebitore) ? indirizzoDebitore + " " + civicoDebitore : "";
// capCittaProv impostati se e' valorizzata la localita'
String capCittaDebitore = StringUtils.isNotEmpty(localitaDebitore) ? (capDebitore + " " + localitaDebitore + provinciaDebitore) : "";

// Inserisco la virgola se la prima riga non e' vuota
String indirizzoDestinatario = StringUtils.isNotEmpty(indirizzoCivicoDebitore) ? indirizzoCivicoDebitore + "," : "";
input.setNomeCognomeDestinatario(anagraficaDebitore.getRagioneSociale());
input.setCfDestinatario(anagraficaDebitore.getCodUnivoco().toUpperCase());

Expand Down

0 comments on commit b2c0da2

Please sign in to comment.