From d7e51227e4d2b26564de9ff5700b7e5eba888c71 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 17 Nov 1994 14:46:54 +0000 Subject: [PATCH] Corretto controllo sul stampa su bollato git-svn-id: svn://10.65.10.50/trunk@653 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg0500a.uml | 10 +++------- cg/cg2100.cpp | 13 ++++++++----- cg/cg2100c.uml | 3 +++ cg/cg2102.cpp | 11 +++++++---- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/cg/cg0500a.uml b/cg/cg0500a.uml index 6682ea12b..5a5781196 100755 --- a/cg/cg0500a.uml +++ b/cg/cg0500a.uml @@ -64,8 +64,6 @@ BEGIN OUTPUT F_TIPO_DOC CODTAB HELP "Tipo documento" CHECKTYPE NORMAL -// MESSAGE SHOW, 2@ -// MESSAGE EMPTY HIDE, 2@ FLAGS "U" ADD NONE END @@ -83,7 +81,6 @@ BEGIN DISPLAY "Tipo" I0 DISPLAY "Corrispettivi" B0 DISPLAY "Descrizione @50" S0 - OUTPUT F_ANNOES CODTAB[1,4] OUTPUT F_COD_REG CODTAB[5,7] OUTPUT F_TIPO_REG I0 OUTPUT F_CORRISP B0 @@ -92,11 +89,11 @@ BEGIN FLAGS "DU" END -// Questo rimane sempre nascosto +// Questo rimane quasi sempre nascosto STRING F_TIPO_MOV 2 BEGIN PROMPT 68 4 "" - FIELD LF_CAUSALI->TIPOMOV + FIELD TIPOMOV FLAGS "H" END @@ -105,7 +102,7 @@ LISTBOX F_TIPO_MOV_1 1 20 BEGIN PROMPT 44 4 "Tipo mov. " HELP "Tipo di movimento generato dalla causale" - FIELD LF_CAUSALI->TIPOMOV + FIELD TIPOMOV HELP "Tipo movimento" ITEM " |Nessuno" MESSAGE COPY,F_TIPO_MOV ITEM "1|Fattura" MESSAGE COPY,F_TIPO_MOV @@ -250,7 +247,6 @@ BEGIN COPY DISPLAY F_COD_CAUS OUTPUT F_COD_CAUS_IM CODCAUS CHECKTYPE NORMAL -// MESSAGE CLEAR, F_M_770 GROUP 2 END diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index 4d6d82f3f..34958c1a7 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -229,11 +229,14 @@ bool TPrimanota_application::changing_mask(int mode) if (flag && _iva != nessuna_iva && !_iva_showed) { - WINDOW w = ivas().parent(); - show_window(w, TRUE); - set_front_window(w); - process_events(); - show_window(w, FALSE); + if (!ivas().dirty()) + { + WINDOW w = ivas().parent(); + show_window(w, TRUE); + set_front_window(w); + process_events(); + show_window(w, FALSE); + } _iva_showed = TRUE; } diff --git a/cg/cg2100c.uml b/cg/cg2100c.uml index 88de02bc2..eefcff61b 100755 --- a/cg/cg2100c.uml +++ b/cg/cg2100c.uml @@ -481,6 +481,7 @@ DATE F_DATA74TER BEGIN PROMPT 54 14 "Data 74/ter " HELP "Data per aliquota IVA ex art.74 ter" + WARNING "E' richiesta la data del 74/ter" CHECKTYPE REQUIRED FIELD DATA74TER END @@ -490,6 +491,7 @@ BEGIN PROMPT 45 15 "Rif.partita " FLAGS "A" HELP "Anno di riferimento partita" + WARNING "E' richiesto l'anno di riferimento" CHECKTYPE REQUIRED END @@ -497,6 +499,7 @@ STRING F_NUMRIF 7 BEGIN PROMPT 68 15 "/ " HELP "Numero documento (o protocollo IVA) di riferimento" + WARNING "E' richiesto il numero di riferimento" CHECKTYPE REQUIRED END diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 45f6b8696..95dc04ad8 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1147,15 +1147,18 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key) if (!ok) return f.error_box("Non esiste il libro giornale dell'esercizio %d", ae); - if (f.dirty() || f.mask().query_mode()) - { + if (f.dirty() || m.query_mode()) + { + const long numreg = m.get_long(F_NUMREG); + const bool error = numreg == 0 || numreg > app()._lastreg; + const TLibro_giornale& gio = app().giornale(); if (dr < gio.last_print()) { f.error_box("La data dell'operazione e' antecedente al %s,\n" "ultima stampa del libro giornale dell'esercizio %d", gio.last_reg().string(), ae); - if (!m.edit_mode()) return FALSE; + if (error) return FALSE; } if (dr < gio.last_reg()) f.warning_box("La data dell'operazione e' antecedente al %s,\n" @@ -1191,7 +1194,7 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key) f.error_box("La data dell'operazione e' antecedente al %s,\n" "ultima stampa del registro '%s' dell'anno %d", reg.last_print().string(), (const char*)codreg, dr.year()); - if (!m.edit_mode()) return FALSE; + if (error) return FALSE; } if (dr < reg.last_reg()) f.warning_box("La data dell'operazione e' antecedente al %s,\n"