From 347c1d390186a7154632d32e346fcd413a86664d Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 6 Aug 2003 09:25:25 +0000 Subject: [PATCH] Patch level : 2.0 552 Files correlati : cg2.exe Ricompilazione Demo : [ ] Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EP20099 HO 10 DOCUMENTI GIA' INVIATI A UN'ALTRA CONTABILITA'. SE NE RICHIAMO UNO ALLA VOLTA VEDO IL MESSAGGIO: MOVIMENTO INVIATO…. SU CIASCUN MOVIMENTO. SE NE RICHIAMO UNO E POI SCORRO CON LA FRECCIA A DX DEL BOTTONE RICERCA IL MESSAGGIO VIENE DATO SOLO SUL PRIMO MOVIMENTO EP20107 Perché la descrizione del cliente se contiene una lettera accentata da errore ? Non possiamo fare in modo che la digerisca ? ATTENZIONE!: Il problema e' legato al formato della CODE-PAGE del database. Essendo questione molto delicata, passare a priorita' 1 EP20108 HO N DOCUMENTI GIA' INVIATI A UN'ALTRA CONTABILITA'. Sono nella maschera "movimento di prima nota" (come per inserire nuovo movimento), clicco sulla doppia freccina a dx del bottone ricerca per entrare in modifica del primo movimento registrato NON VEDO IL MESSAGGIO:"MOVIMENTO INVIATO " messaggio che invece viene visualizzato se richiamo lo stesso movimento andando in ricerca e selezionandolo ATTENZIONE!: Coincide con EP20099 git-svn-id: svn://10.65.10.50/trunk@11372 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2100.cpp | 20 ++++++++++++++++++++ cg/cg2102.cpp | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index 668f8dd84..9c905c890 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -719,6 +719,26 @@ void TPrimanota_application::init_modify_mode(TMask& m) } } } + + if (navigating()) + { + const TRectype& mov = get_relation()->curr(); + if (!mov.empty()) + { + TString msg; + if (mov.get_bool(MOV_STAMPATO)) + msg << '\n' << TR("Il movimento e' gia' stato stampato sul libro giornale."); + if (mov.get_bool(MOV_REGST)) + msg << '\n' << TR("Il movimento e' gia' stato stampato sul bollato."); + if (mov.get_bool(MOV_INVIATO)) + msg << '\n' << TR("Il movimento e' stato inviato ad un'altra contabilita'."); + if (msg.not_empty()) + { + msg.insert(TR("ATTENZIONE!")); + warning_box(msg); + } + } + } } // Controlla sulla causale se il segno del totale documento (ritsoc=FALSE) diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 8d96d09fe..dd9d400c1 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -701,12 +701,12 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) if (!importo.is_zero()) { - const TBill c(r, 2, 0x1); + TBill c(r, 2, 0x1); if (!c.ok()) return f.error_box(FR("Il conto della riga %d non e' completo"), i+1); if (m.insert_mode() && c.sospeso()) return f.error_box(FR("Il conto della riga %d e' sospeso"), i+1); - const TBill co(r, 10, 0x0); + TBill co(r, 10, 0x0); if (!co.empty() && !co.ok()) { const bool ok = f.yesno_box(FR("La contropartita della riga %d non e' completa:\n" @@ -716,7 +716,7 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) if (app().is_transaction()) { - // Controlla esistenza conti nelle transazioni + // Controlla esistenza conti nelle transazioni (visto che non c'e' controllo in inserimento) if (!c.find()) return f.error_box("Il conto della riga %d non esiste", i+1); if (!co.empty() && !co.find())