Patch level : 10.0 patch 472
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Cambiato TBaseiasmfile in TLocalisamfile Aggiunte variabili espclicite durante l'estrazione dalla riga git-svn-id: svn://10.65.10.50/trunk@19449 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2be381fbfb
commit
92b0a5e65d
@ -525,7 +525,7 @@ bool TConta_pulito_msk::elabora_file(const TFilename& file)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
TBaseisamfile f(LF_PACCHI);
|
TLocalisamfile f(LF_PACCHI);
|
||||||
TScanner s(file);
|
TScanner s(file);
|
||||||
while (s.ok())
|
while (s.ok())
|
||||||
{
|
{
|
||||||
@ -533,13 +533,26 @@ bool TConta_pulito_msk::elabora_file(const TFilename& file)
|
|||||||
if (riga.blank())
|
if (riga.blank())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TRiga_pacco* rp = new TRiga_pacco();
|
TString80 codpacco = riga.left(50);
|
||||||
rp->set_key(riga.left(50));
|
codpacco.trim();
|
||||||
rp->set_articolo(riga.mid(50, 20));
|
|
||||||
rp->set_quantita(atoi(riga.mid(70, 8)));
|
TString80 codart = riga.mid(50,20);
|
||||||
|
codart.trim();
|
||||||
|
|
||||||
|
long qta = atoi(riga.mid(70, 8));
|
||||||
|
|
||||||
TDate data(atoi(riga.mid(78, 2)), atoi(riga.mid(80, 2)), atoi(riga.mid(82, 4)));
|
TDate data(atoi(riga.mid(78, 2)), atoi(riga.mid(80, 2)), atoi(riga.mid(82, 4)));
|
||||||
rp->set_data(data);
|
|
||||||
int codcf = atoi(riga.mid(86, 6));
|
int codcf = atoi(riga.mid(86, 6));
|
||||||
|
|
||||||
|
const bool ann = riga.mid(100, 1)[0] == 'S' ? true : false;
|
||||||
|
|
||||||
|
TRiga_pacco* rp = new TRiga_pacco();
|
||||||
|
rp->set_key(codpacco);
|
||||||
|
rp->set_articolo(codart);
|
||||||
|
rp->set_quantita(qta);
|
||||||
|
rp->set_data(data);
|
||||||
|
|
||||||
if(codcf > 0)
|
if(codcf > 0)
|
||||||
{
|
{
|
||||||
rp->set_cliente(codcf); //eventualmente vuoto
|
rp->set_cliente(codcf); //eventualmente vuoto
|
||||||
@ -547,7 +560,6 @@ bool TConta_pulito_msk::elabora_file(const TFilename& file)
|
|||||||
rp->set_databo(databo); //eventualmente vuoto
|
rp->set_databo(databo); //eventualmente vuoto
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool ann = riga.mid(100, 1)[0] == 'S' ? true : false;
|
|
||||||
rp->set_annullato(ann);
|
rp->set_annullato(ann);
|
||||||
|
|
||||||
//recupero l'unità di misura principale di quest'articolo
|
//recupero l'unità di misura principale di quest'articolo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user