Patch level : 12.0 896
Files correlati : ve0.exe ve1.exe ve1.exe ve5,exe ve6.exe tutti i profili Commento to : Gestione conai
This commit is contained in:
parent
0de744bf58
commit
fd54d70535
@ -1373,19 +1373,21 @@ bool TDoc_fp::export_info_articolo(TFPRiga_documento* rdoc, TPaf_record& paf1900
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Controllo se ha il CONAI in tal caso aggiungo i dati
|
// Controllo se ha il CONAI in tal caso aggiungo i dati
|
||||||
FOR_EACH_CONFIGURED_CONAI_CLASS(cc)
|
for (int i = 0; i < FR_CMAX; i++)
|
||||||
{
|
{
|
||||||
const TString conai_fld(conai_peso_name(cc, LF_RIGHEDOC));
|
if (rdoc->get(conai_peso_name(i)).full())
|
||||||
if (rdoc->get(conai_fld).full())
|
|
||||||
{
|
{
|
||||||
reset(paf2100f);
|
reset(paf2100f);
|
||||||
paf2100f.set("PK_KEYNLINEA", static_cast<long>(riga_doc));
|
paf2100f.set("PK_KEYNLINEA", static_cast<long>(riga_doc));
|
||||||
paf2100f.set("PK_KEYNLINAR", _idx_adg_doc_row++);
|
paf2100f.set("PK_KEYNLINAR", _idx_adg_doc_row++);
|
||||||
static TString msg_conai;
|
|
||||||
msg_conai.cut(0) << "Contributo CONAI " << conai_material(cc) << " (KG)";
|
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_TIPODATO", "CONAI");
|
||||||
paf2100f.set("PK_RIFDATO", msg_conai);
|
paf2100f.set("PK_RIFDATO", msg_conai);
|
||||||
paf2100f.set("PK_RIFNUMERO", rdoc->get_real(conai_fld).string());
|
paf2100f.set("PK_RIFNUMERO", rdoc->get_real(conai_peso_name(i)).string());
|
||||||
ok &= insert(paf2100f);
|
ok &= insert(paf2100f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user