Patch level : 12.0 954
Files correlati : fp0.exe Commento : - Modificata esportazione dati CONAI se non hai le personalizzazioni attive, in modo da poter personalizzare anche il CONAI. - Aggiunti dati precompilati per altri dati gestionali per CONAI.
This commit is contained in:
parent
1c0a48c9ca
commit
3fe4baabc0
@ -1381,20 +1381,20 @@ bool TDoc_fp::export_info_articolo(TFPRiga_documento* rdoc, TPaf_record& paf1900
|
||||
// Controllo se ha il CONAI in tal caso aggiungo i dati
|
||||
for (int i = 0; i < FR_CMAX; i++)
|
||||
{
|
||||
if (rdoc->get(conai_peso_name(i)).full())
|
||||
if (rdoc->get(conai_peso_name(i)).full() && !_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)";
|
||||
paf2100f.set("PK_TIPODATO", "CONAI");
|
||||
paf2100f.set("PK_RIFDATO", msg_conai);
|
||||
paf2100f.set("PK_RIFNUMERO", rdoc->get_real(conai_peso_name(i)).string());
|
||||
ok &= insert(paf2100f);
|
||||
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)";
|
||||
paf2100f.set("PK_TIPODATO", "CONAI");
|
||||
paf2100f.set("PK_RIFDATO", msg_conai);
|
||||
paf2100f.set("PK_RIFNUMERO", rdoc->get_real(conai_peso_name(i)).string());
|
||||
ok &= insert(paf2100f);
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
|
Loading…
x
Reference in New Issue
Block a user