Patch level : 12.0 1074
Files correlati : fp0.exe Commento : Valorizzato campo RIFNUMLINEA su tutti gli inserimenti nella tabella PAF1600F Interno: Riferimento LIG Centro Sud
This commit is contained in:
parent
c8696d3247
commit
68fa863818
@ -1832,6 +1832,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
rifs.cut(0);
|
||||
int pos = rifs.find(" - ");
|
||||
int len = rifs.len();
|
||||
long numlinea = 0;
|
||||
|
||||
if (len > 0 && pos < 0)
|
||||
pos = len;
|
||||
@ -1847,6 +1848,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
temp = rif.get();
|
||||
paf1600f.set("PF_DATADDT", temp);
|
||||
paf1600f.set("PF_GESTIONE", "D");
|
||||
paf1600f.set("PF_RIFNUMLINEA", numlinea++);
|
||||
ok &= insert(paf1600f);
|
||||
rifs.ltrim(pos + 3);
|
||||
pos = rifs.find(" - ");
|
||||
@ -2129,7 +2131,9 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
{
|
||||
map<TString20, TFPBuono_di_consegna> buoni;
|
||||
fill_buoni(buoni, memo, !first_row);
|
||||
paf1600f.set("PF_RIFNUMLINEA", "0");
|
||||
|
||||
long rifnumlinea = 0;
|
||||
|
||||
FOR_EACH_BUONI(buoni, n, buono)
|
||||
{
|
||||
if (!buono->already_exist(ancestors_s))
|
||||
@ -2137,6 +2141,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
reset(paf1600f);
|
||||
paf1600f.set("PF_NUMDDDT", buono->_numdoc);
|
||||
paf1600f.set("PF_DATADDT", buono->_datadoc);
|
||||
paf1600f.set("PF_RIFNUMLINEA", rifnumlinea++);
|
||||
paf1600f.set("PF_GESTIONE", "D");
|
||||
ok &= insert(paf1600f);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user