Patch level : 10.0
Files correlati : pd0610 Ricompilazione Demo : [ ] Commento : Corretto il controllo sul tipo pagamento Aggiunto il log dei documenti modificati git-svn-id: svn://10.65.10.50/branches/R_10_00@21559 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
261bafc712
commit
5a50634021
@ -3,6 +3,8 @@
|
||||
#include <recarray.h>
|
||||
#include <recset.h>
|
||||
#include <relation.h>
|
||||
#include <reprint.h>
|
||||
#include <reputils.h>
|
||||
|
||||
#include "../cg/cglib01.h"
|
||||
|
||||
@ -25,6 +27,8 @@ public:
|
||||
|
||||
bool TSost_condpag_msk::elabora_documenti()
|
||||
{
|
||||
TLog_report rep(TR("Documenti modificati"));
|
||||
|
||||
//se non sono settate le date, compilo gli anni dagli esercizi contabili
|
||||
TEsercizi_contabili& esc = esercizi();
|
||||
const TDate dadata = get_date(F_DADATA);
|
||||
@ -63,12 +67,21 @@ bool TSost_condpag_msk::elabora_documenti()
|
||||
const TString4 codpagdoc = rec.get(DOC_CODPAG);
|
||||
const TString4 tipopag = cache().get("%CPG", codpagdoc, "S4");
|
||||
|
||||
if(codpagdoc != codpag && tipopag == 3) //tipopag = 3-> riba
|
||||
if(codpagdoc != codpag && tipopag == "3") //tipopag = 3-> riba
|
||||
{
|
||||
rec.put(DOC_CODPAG, codpag);
|
||||
rec.rewrite(documenti);
|
||||
|
||||
TString str;
|
||||
str << doc.get(DOC_PROVV).as_string() << '|' << doc.get(DOC_ANNO).as_int() << '|' << doc.get(DOC_CODNUM).as_string() << '|' << doc.get(DOC_NDOC);
|
||||
rep.log(0, str);
|
||||
}
|
||||
}
|
||||
|
||||
TReport_book buc;
|
||||
buc.add(rep);
|
||||
if (buc.pages() > 0)
|
||||
buc.preview();
|
||||
return doc.items() > 0 ? true : false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user