Patch level : 10.0 patch ???
Files correlati : pd0610 Ricompilazione Demo : [ ] Commento : Aggiunto il controllo sul tipo pagamento git-svn-id: svn://10.65.10.50/branches/R_10_00@21547 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f8963779f3
commit
3d0c1d184a
@ -1,5 +1,6 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <recarray.h>
|
||||||
#include <recset.h>
|
#include <recset.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
|
|
||||||
@ -59,7 +60,10 @@ bool TSost_condpag_msk::elabora_documenti()
|
|||||||
{
|
{
|
||||||
TRectype& rec = doc.cursor()->curr();
|
TRectype& rec = doc.cursor()->curr();
|
||||||
|
|
||||||
if(rec.get(DOC_CODPAG) != codpag)
|
const TString4 codpagdoc = rec.get(DOC_CODPAG);
|
||||||
|
const TString4 tipopag = cache().get("%CPG", codpagdoc, "S4");
|
||||||
|
|
||||||
|
if(codpagdoc != codpag && tipopag == 3) //tipopag = 3-> riba
|
||||||
{
|
{
|
||||||
rec.put(DOC_CODPAG, codpag);
|
rec.put(DOC_CODPAG, codpag);
|
||||||
rec.rewrite(documenti);
|
rec.rewrite(documenti);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user