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;}