Gestite anche in fattura elettronica note della gtb_anag_note che vengono stampate sul documento
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-03-06 18:15:36 +01:00
parent 7faab50c66
commit b7a4ea0d4c

View File

@@ -499,6 +499,17 @@ public class DigitalInvoiceBodyFactory {
}
}
// se configurato inserisce nel tag CAUSALE le note del cliente presenti nella gtb_anag_note con flag_stampa_doc ='S'
if (setupCustom.getSetupBoolean("FATTURA_ELETTRONICA_CUSTOM", "CAUSALE", "GTB_ANAG_NOTE")) {
sql = "SELECT note FROM gtb_anag_note WHERE flag_stampa_doc ='S' and cod_anag = " + UtilityDB.valueToString(request.getCodAnag()) + " ORDER BY riga_note";
List<String> notes = UtilityDB.executeSimpleQueryOnlyFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
for (String note : notes) {
datiGeneraliDocumento.getCausale().add(note);
}
}
//se configurato inserisce nel tag CAUSALE tutte le partite di magazzino presenti nel docuemnto
if (setupCustom.getSetupBoolean("FATTURA_ELETTRONICA_CUSTOM", "COD_ANAG_" + request.getCodAnag(), "CAUSALE_LOTTO")) {
final String[] matricole = {""};