Patch level : 10.0
Files correlati : ps0713 Ricompilazione Demo : [ ] Commento : Modifica richiesta da Roberto git-svn-id: svn://10.65.10.50/trunk@20494 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c63d39f36f
commit
38b6f6b3df
@ -103,6 +103,7 @@ void TImporta_comm_app::importa_cms(TAssoc_array& righe)
|
|||||||
TProgind pi(righe.items(), "Scansione file in corso...", true, true);
|
TProgind pi(righe.items(), "Scansione file in corso...", true, true);
|
||||||
TLog_report log("Importazione Commesse");
|
TLog_report log("Importazione Commesse");
|
||||||
|
|
||||||
|
TLocalisamfile com(LF_COMMESSE);
|
||||||
TLocalisamfile rip(LF_RIP);
|
TLocalisamfile rip(LF_RIP);
|
||||||
TLocalisamfile rrip(LF_RRIP);
|
TLocalisamfile rrip(LF_RRIP);
|
||||||
const TRectype& r = rip.last();
|
const TRectype& r = rip.last();
|
||||||
@ -137,6 +138,11 @@ void TImporta_comm_app::importa_cms(TAssoc_array& righe)
|
|||||||
|
|
||||||
const real percentuale(CENTO);
|
const real percentuale(CENTO);
|
||||||
|
|
||||||
|
TString80 desms; descms << "Commessa " << codcms;
|
||||||
|
|
||||||
|
com.put("CODCMS", codcms);
|
||||||
|
com.put("DESCRIZ", descms);
|
||||||
|
|
||||||
rip.put("TIPO", 'B');
|
rip.put("TIPO", 'B');
|
||||||
rip.put("CODICE", cod);
|
rip.put("CODICE", cod);
|
||||||
rip.put("CODCMS", codcms);
|
rip.put("CODCMS", codcms);
|
||||||
@ -150,7 +156,10 @@ void TImporta_comm_app::importa_cms(TAssoc_array& righe)
|
|||||||
rrip.put("CODCONTO", codconto);
|
rrip.put("CODCONTO", codconto);
|
||||||
rrip.put("RIPARTO", percentuale);
|
rrip.put("RIPARTO", percentuale);
|
||||||
|
|
||||||
int err = rip.write();
|
int err = com.write();
|
||||||
|
if(err == NOERR)
|
||||||
|
err = rip.write();
|
||||||
|
|
||||||
if(err == NOERR)
|
if(err == NOERR)
|
||||||
err = rrip.write();
|
err = rrip.write();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user