From 5e8ae8b097124f79816496a17930581f254bb077 Mon Sep 17 00:00:00 2001 From: Simone Palacino Date: Wed, 18 Dec 2019 12:50:17 +0100 Subject: [PATCH] Patch level : 12.0 910 Files correlati : ve1.exe, fp0.exe Commento : Corretta dicitura lettere d'intento con n. minist. anziche' n. prot. --- src/ve/velib03.cpp | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/src/ve/velib03.cpp b/src/ve/velib03.cpp index 0210da3c7..b3eb53e7e 100755 --- a/src/ve/velib03.cpp +++ b/src/ve/velib03.cpp @@ -1053,25 +1053,14 @@ void TDocumento::set_riga_esenzione() if (_esenzione == NULL) _esenzione = new TRiga_documento(this, _tipo_riga_es); TString d = _des_esenz; - - if(multi_plaf) + TToken_string le_plafs(get("PLAFOND"), ','); + d << (multi_plaf ? " come dalle vostre dichiarazioni:\n" : " come da vostra dichiarazione:\n"); + for(int i = 0; i < le_plafs.items(); i++) { - d << " come dalle vostre dichiarazioni:\n"; - TToken_string le_plafs(get("PLAFOND"), ','); - for(int i = 0; i < le_plafs.items(); i++) - { - static TToken_string this_plaf; this_plaf.cut(0) << le_plafs.get(i); - static TString key; key.cut(0) << this_plaf.get(0) << "|" << this_plaf.get(1); - TRectype plaf = cache().get(LF_LETINT, key); - d << "N. " << plaf.get(LETINT_VSPROT) << " del " << plaf.get(LETINT_VSDATA) - << " da noi annotata al n. " << plaf.get(LETINT_NUMPROT) << " il " << plaf.get(LETINT_DATAREG) << "\n"; - } - } - else - { - d << format(" come da vostra dichiarazione n. %s del %s da noi annotata al n. %s il %s.", - (const char*)v_esenzione, (const char*)v_data_esenzione, - (const char*)n_registrazione, (const char*)n_data_registrazione); + static TToken_string this_plaf; this_plaf.cut(0) << le_plafs.get(i); + static TString key; key.cut(0) << this_plaf.get(0) << "|" << this_plaf.get(1); + TRectype plaf = cache().get(LF_LETINT, key); + d << "N. di protocollo di invio: " << plaf.get(LETINT_PROTINTF) << "-" << plaf.get(LETINT_PROTINTS) << " del " << plaf.get(LETINT_VSDATA) << "\n"; } _esenzione->set_descr(d); }