From a550efbef20206a1148800122e0c195230f13dd2 Mon Sep 17 00:00:00 2001 From: angelo Date: Wed, 14 May 1997 10:35:52 +0000 Subject: [PATCH] Modifiche al programma di lista documenti (TOTALE IMPONIBILI). git-svn-id: svn://10.65.10.50/trunk@4334 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/listadoc.frm | 5 ++--- ve/ve1100.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ve/listadoc.frm b/ve/listadoc.frm index 89b77f020..2f675035a 100755 --- a/ve/listadoc.frm +++ b/ve/listadoc.frm @@ -174,10 +174,9 @@ END NUMBER 24 15 BEGIN - KEY "Totale imponibile (al netto delle spese)" + KEY "Totale imponibile (con spese)" PROMPT 86 1 "" -// Il selettore 0 restituisce il totale imponibili meno le spese - MESSAGE _TOTIMPONIBILI,1 + MESSAGE _TOTIMPONIBILI,0 PICTURE "###.###.###.###" END diff --git a/ve/ve1100.cpp b/ve/ve1100.cpp index 38fc1ac89..119029927 100755 --- a/ve/ve1100.cpp +++ b/ve/ve1100.cpp @@ -889,10 +889,10 @@ bool TDocumento_form::validate(TForm_item &cf, TToken_string &s) { { // sintassi: _TOTIMPONIBILI, // dove: funge da filtro per la somma degli imponibili - // se selettore vale 0 restituisce il tot. imponibili meno le spese + // se selettore vale 0 restituisce il tot. imponibili con le spese // vedi _RIEPILOGOIVA per la spiegazione dei filtri selettivi byte sel = atoi(s.get()); - real x = _doc->tot_imponibili(sel); + real x = sel == 0 ? _doc->imponibile(TRUE): _doc->tot_imponibili(sel); TString picture(cf.picture()); if (x != 0.0)