2Patch level : 12.0 974

Files correlati     : f90.exe
Commento            :

Contollato l'addebito CONAI e che la categoria CONAI esista.

Deve provarlo Simone prima di faare la patch soptrattutto su chi ha il CONAI.
This commit is contained in:
Alessandro Bonazzi 2020-07-07 15:25:11 +02:00
parent 7237a031cd
commit 0a05d1ed2a

View File

@ -1379,16 +1379,21 @@ bool TDoc_fp::export_info_articolo(TFPRiga_documento* rdoc, TPaf_record& paf1900
}
}
}
// Controllo se ha il CONAI in tal caso aggiungo i dati
const TTipo_documento & tipodoc = rdoc->doc().tipo();
if (tipodoc.add_conai())
for (int i = 0; i < FR_CMAX; i++)
{
if (rdoc->get(conai_peso_name(i)).full() && !_has_cust)
const TString scat(rdoc->get(conai_sottocat_name(i)));
if (scat.full() && cache().get("&VESCC", scat).not_empty() && !_has_cust)
{
reset(paf2100f);
paf2100f.set("PK_KEYNLINEA", static_cast<long>(riga_doc));
paf2100f.set("PK_KEYNLINAR", _idx_adg_doc_row++);
TString scat = rdoc->get(conai_sottocat_name(i));
TString msg_conai;
msg_conai << "Contributo CONAI " << conai_material(conai_str2class(scat)) << " (Kg)";