From 3507f8880048137029151843473e5ea3893606b9 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 29 Oct 1996 10:19:29 +0000 Subject: [PATCH] Corretto metodo totale_netto() di TRiga_documento. git-svn-id: svn://10.65.10.50/trunk@3840 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/velib01.cpp | 2 ++ ve/velib01.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ve/velib01.cpp b/ve/velib01.cpp index 7790ce517..123c4005f 100755 --- a/ve/velib01.cpp +++ b/ve/velib01.cpp @@ -1068,6 +1068,8 @@ void TTipo_documento::read_formule() _imposta.cut(0); } _totale = profile.get("TOTALE", "MAIN"); + _totale_netto = "_"; + _totale_netto << _totale; if (_totale.not_empty() && _formule.find(_totale) < 0) { error_box("Campo totale documento (%s) sconosciuto nel tipo documento %s", (const char *) _totale, (const char *) codice()); diff --git a/ve/velib01.h b/ve/velib01.h index c98360ff5..322c83a55 100755 --- a/ve/velib01.h +++ b/ve/velib01.h @@ -171,6 +171,7 @@ class TTipo_documento : public TRectype TString16 _imponibile; TString16 _imposta; TString16 _totale; + TString16 _totale_netto; TString16 _basesconto; TString16 _spese; @@ -192,7 +193,7 @@ public: const TString& imponibile() const { return _imponibile;} const TString& imposta() const { return _imposta;} const TString& totale_doc() const { return _totale;} - const TString& totale_netto() const { return TString("_") << _totale;} + const TString& totale_netto() const { return _totale_netto; } const TString& basesconto() const { return _basesconto;} const TString& spese() const { return _spese;}