Patch level : 10.0 nopatch
Files correlati : ps0713.exe Ricompilazione Demo : [ ] Commento : Aggiunto importo spese da distribuire sull' importazione fatture git-svn-id: svn://10.65.10.50/trunk@20632 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
365972527c
commit
1a738edfec
@ -273,7 +273,7 @@ const char* nomeini = "ps0713300fatt.ini";
|
|||||||
|
|
||||||
bool TImporta_fatacq_app::create()
|
bool TImporta_fatacq_app::create()
|
||||||
{
|
{
|
||||||
xvt_fsys_removefile(nomeini);
|
xvt_fsys_remove_file(nomeini);
|
||||||
_configfile = new TConfig(nomeini);
|
_configfile = new TConfig(nomeini);
|
||||||
|
|
||||||
_msk = new TImporta_fatacq_msk();
|
_msk = new TImporta_fatacq_msk();
|
||||||
|
@ -183,7 +183,7 @@ bool TImporta_spese_app::transfer()
|
|||||||
|
|
||||||
TProgind pi(s.items(),"Importazione spese in corso ...",true,true);
|
TProgind pi(s.items(),"Importazione spese in corso ...",true,true);
|
||||||
|
|
||||||
xvt_fsys_removefile(nomeini);
|
xvt_fsys_remove_file(nomeini);
|
||||||
TConfig configfile (nomeini, "Transaction"); //setto il paragrafo [Transaction] del file ini
|
TConfig configfile (nomeini, "Transaction"); //setto il paragrafo [Transaction] del file ini
|
||||||
const TConfig conf(nomeini, "Transaction");
|
const TConfig conf(nomeini, "Transaction");
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ bool TImporta_spese_app::transfer()
|
|||||||
if(data != dataold)
|
if(data != dataold)
|
||||||
{
|
{
|
||||||
if (dataold.ok())
|
if (dataold.ok())
|
||||||
chiudi_movimento(configfile, tot_doc, data, numreg, righean);
|
chiudi_movimento(configfile, tot_doc, dataold, numreg, righean);
|
||||||
|
|
||||||
numreg = genera_movcg(data);
|
numreg = genera_movcg(data);
|
||||||
TLocalisamfile mov(LF_MOV);
|
TLocalisamfile mov(LF_MOV);
|
||||||
@ -309,7 +309,7 @@ bool TImporta_spese_app::transfer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
chiudi_movimento(configfile, tot_doc, data, numreg, righean);
|
chiudi_movimento(configfile, tot_doc, dataold, numreg, righean);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -324,7 +324,7 @@ void TImporta_spese_app::main_loop()
|
|||||||
if (transfer())
|
if (transfer())
|
||||||
{
|
{
|
||||||
message_box(TR("Importazione spese completata"));
|
message_box(TR("Importazione spese completata"));
|
||||||
xvt_fsys_removefile(nomeini);
|
xvt_fsys_remove_file(nomeini);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user