From 1c6184d03e89b76acbd2058f55b343c8f8d8a879 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 20 Jan 2011 12:15:30 +0000 Subject: [PATCH] Patch level : 10.0 888 Files correlati : cg2.exe Ricompilazione Demo : [ ] Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il test di documento giĆ  esistente e' stato attivato anche per le vendite (CHIMA) git-svn-id: svn://10.65.10.50/branches/R_10_00@21484 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2102.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 2b66368bf..59d396b9d 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -2428,7 +2428,7 @@ bool TPrimanota_application::numdoc_handler(TMask_field& f, KEY key) } // Controllo documenti duplicati - if (key == K_ENTER && !f.empty() && app().iva() == iva_acquisti) + if (key == K_ENTER && !f.empty() && app().iva() != nessuna_iva) { TMask& m = f.mask(); @@ -2452,7 +2452,7 @@ bool TPrimanota_application::numdoc_handler(TMask_field& f, KEY key) TRectype& rec = rel.curr(); TRectype recfrom(rec); - recfrom.put(MOV_TIPO, "F"); + recfrom.put(MOV_TIPO, app().iva() == iva_acquisti ? "F" : "C"); recfrom.put(MOV_CODCF, fornitore); recfrom.put(MOV_DATAREG, TDate(1, 1, annodoc));