From fe341219bcedc364c4f8800ce3d5eff0ea354a13 Mon Sep 17 00:00:00 2001 From: cris Date: Fri, 1 Dec 2006 09:19:23 +0000 Subject: [PATCH] Patch level : 4.0 Files correlati : VE7.EXE Ricompilazione Demo : [ ] Commento : Corretto erroracci git-svn-id: svn://10.65.10.50/trunk@14592 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve7701.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ve/ve7701.cpp b/ve/ve7701.cpp index 8846573ef..627e7a019 100755 --- a/ve/ve7701.cpp +++ b/ve/ve7701.cpp @@ -247,8 +247,8 @@ bool TGalileo_articoli::trasferisci() "WHERE (MID(TBDAT,9,1)=RITIP) AND (TBTIP='COD') AND (TBELE='RIS')"; if (!_data.empty()) { - query << "AND RIDTX >= "; - query << _data.date2ansi(); + query << "AND (RIDTX >= "; + query << _data.date2ansi() << ")"; } TRecordset& recset = create_recordset(query); @@ -275,7 +275,7 @@ bool TGalileo_articoli::trasferisci() { rec_anamag.zero(); rec_anamag.put(ANAMAG_CODART, codart); - good &= test_write(anamag, true); + good = test_write(anamag); } if (good) { @@ -291,9 +291,12 @@ bool TGalileo_articoli::trasferisci() rec_umart.put(UMART_NRIGA, 1); good = (umart.write() == NOERR); } - rec_umart.put(UMART_UM, get_str("RSUMS")); - rec_umart.put(UMART_FC, 1); - umart.rewrite(); + if (good) + { + rec_umart.put(UMART_UM, get_str("RSUMS")); + rec_umart.put(UMART_FC, 1); + umart.rewrite(); + } } } return write_enabled();