Patch level : 12.0 910

Files correlati     : ve1.exe, fp0.exe
Commento            : Corretta dicitura lettere d'intento con n. minist. anziche' n. prot.
This commit is contained in:
Simone Palacino 2019-12-18 12:50:17 +01:00
parent a64b395bb7
commit 5e8ae8b097

View File

@ -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);
}