From c60e91a26454c7ad22c32a1f5b124628552d33b8 Mon Sep 17 00:00:00 2001 From: cris Date: Wed, 20 Dec 2006 11:34:19 +0000 Subject: [PATCH] Patch level : 4.0 572 Files correlati : cg7.exe Ricompilazione Demo : [ ] Commento : il gruppo 10 diventa 0 git-svn-id: svn://10.65.10.50/trunk@14659 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg7300.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cg/cg7300.cpp b/cg/cg7300.cpp index 333b7a82b..529ec0b70 100755 --- a/cg/cg7300.cpp +++ b/cg/cg7300.cpp @@ -165,6 +165,8 @@ void TInvioS_file::validate(TCursor& cur,TRecord_text &rec, TToken_string &s, TS else if (code == "_CONTO") { int gruppo = cur.curr(LF_CLIFO).get_int(CLI_GRUPPO); + if (gruppo == 10) + gruppo = 0; int conto = cur.curr(LF_CLIFO).get_int(CLI_CONTO); long codice = cur.curr(LF_CLIFO).get_int(CLI_CODCF); valore.format("%03d%03d%06ld", gruppo, conto, codice); @@ -172,6 +174,8 @@ void TInvioS_file::validate(TCursor& cur,TRecord_text &rec, TToken_string &s, TS else if (code == "_CONTOMOV") { int gruppo = cur.curr(LF_RMOV).get_int(RMV_GRUPPO); + if (gruppo == 10) + gruppo = 0; int conto = cur.curr(LF_RMOV).get_int(RMV_CONTO); long codice = cur.curr(LF_RMOV).get_int(RMV_SOTTOCONTO); valore.format("%03d%03d%06ld", gruppo, conto, codice); @@ -179,6 +183,8 @@ void TInvioS_file::validate(TCursor& cur,TRecord_text &rec, TToken_string &s, TS else if (code == "_CONTOMOVIVA") { int gruppo = cur.curr(LF_RMOVIVA).get_int(RMI_GRUPPO); + if (gruppo == 10) + gruppo = 0; int conto = cur.curr(LF_RMOVIVA).get_int(RMI_CONTO); long codice = cur.curr(LF_RMOVIVA).get_int(RMI_SOTTOCONTO); valore.format("%03d%03d%06ld", gruppo, conto, codice);