From b8c79b62d191e763a00666eaed2393ac295a4a1e Mon Sep 17 00:00:00 2001 From: angelo Date: Fri, 4 Apr 1997 10:09:40 +0000 Subject: [PATCH] Correzioni alla lista documenti (totale imponibili) git-svn-id: svn://10.65.10.50/trunk@4261 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/listadoc.frm | 7 ++++--- ve/ve1100.cpp | 16 ++++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ve/listadoc.frm b/ve/listadoc.frm index acc0edaf9..89b77f020 100755 --- a/ve/listadoc.frm +++ b/ve/listadoc.frm @@ -90,7 +90,7 @@ END STRINGA 12 10 BEGIN KEY "Intestazione (Imponibile)" - PROMPT 86 4 "Imponibile" + PROMPT 91 4 "Imponibile" END STRINGA 13 10 @@ -174,9 +174,10 @@ END NUMBER 24 15 BEGIN - KEY "Totale imponibile (senza spese)" + KEY "Totale imponibile (al netto delle spese)" PROMPT 86 1 "" - MESSAGE _TOTIMPONIBILI,0 +// Il selettore 0 restituisce il totale imponibili meno le spese + MESSAGE _TOTIMPONIBILI,1 PICTURE "###.###.###.###" END diff --git a/ve/ve1100.cpp b/ve/ve1100.cpp index 5e6ea70c3..38fc1ac89 100755 --- a/ve/ve1100.cpp +++ b/ve/ve1100.cpp @@ -889,14 +889,14 @@ 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 // vedi _RIEPILOGOIVA per la spiegazione dei filtri selettivi - // In piu' il selettore 0 restituisce il tot imp. meno le spese. byte sel = atoi(s.get()); - real r = _doc->tot_imponibili(sel); - if (sel == 0) r -= _doc->spese(); + real x = _doc->tot_imponibili(sel); - if (r != 0.0) - valore = r.string(cf.picture()); // Riformatta il valore + TString picture(cf.picture()); + if (x != 0.0) + valore = x.string(picture); // Riformatta il valore else valore = ""; cf.put_paragraph(valore); @@ -1254,7 +1254,11 @@ bool TStampaDoc_application::select() { TMask m("ve1100a"); - if (_is_lista) m.hide(F_NCOPIE); + if (_is_lista) + { + m.hide(F_NCOPIE); + m.set_caption("Lista Documenti"); + } TString wdate; m.set_handler(F_DA_DATADOC, date2num_handler); m.set_handler(F_A_DATADOC, date2num_handler);