From fd0cae4c34d5cdc53bebc868b684a6c89082b38b Mon Sep 17 00:00:00 2001 From: villa Date: Wed, 28 Jun 1995 10:38:48 +0000 Subject: [PATCH] Il quarto commit della giornata elimina la gestione sbagliata del flag "ricalcolo iva acquisti beni per rivendita", senza pero' aggiungere la gestione giusta git-svn-id: svn://10.65.10.50/trunk@1517 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg4301.cpp | 5 +++-- cg/cg4303.cpp | 12 ++++-------- cg/classpim.cpp | 3 --- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/cg/cg4301.cpp b/cg/cg4301.cpp index fd1550c1c..3b87b2bca 100755 --- a/cg/cg4301.cpp +++ b/cg/cg4301.cpp @@ -896,7 +896,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt) real fcv = _pim->get_real("R14"); /* le porche fatture in ritardo */ - TToken_string fr(_pim_r->get("S1")); + TToken_string fr(_pim->get("S1")); real rti(fr.get(0)); real rtv(fr.get(1)); @@ -1188,7 +1188,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt) _pam->rewrite(); _pum->rewrite(); _pom->rewrite(); -} +} + void TLiquidazione_app::write_liq(int month, const char* codatts) // Calcolo liq. mensili e liq. annuali diff --git a/cg/cg4303.cpp b/cg/cg4303.cpp index 044c95447..5864d3faa 100755 --- a/cg/cg4303.cpp +++ b/cg/cg4303.cpp @@ -141,14 +141,10 @@ void TLiquidazione_app::recalc_ventilation(int month, const char* codatt) TString16 tipoiva(_iva->get("S1")); TString16 reg = *_pim_codreg; - /* - * se non si e' settato il ricalcolo nei parametri ditta - * considera soltanto quelli con detraibilita' == 3 - * (passaggi interni) - * sensu Scudler 1994 - */ - if (!_isricacq && tipodet != 3) - continue; + // pare che questo fosse totalmente folle e idiota + // ci si chiede quindi che cazzo abbia detto la Scudeler + // if (!_isricacq && tipodet != 3) + // continue; /* * caso particolare SENSU Vladimiro (1995) #MI3001 diff --git a/cg/classpim.cpp b/cg/classpim.cpp index 32a6a0b77..99bceb8a3 100755 --- a/cg/classpim.cpp +++ b/cg/classpim.cpp @@ -17,7 +17,6 @@ bool classify_pim(TRectype& pimr, real& imp, real& iva, tiporec& t) const bool vola = pimr.get_bool("B2"); const bool rimb = pimr.get_bool("B3"); - const bool ricl = pimr.get_bool("B4"); TString tipoiva = pimr.get("S5"); @@ -76,7 +75,6 @@ bool classify_pim(TRectype& pimr, real& imp, real& iva, tiporec& t) case base_ventilazione: found = (tipomov == 2 && tipodet != 9 && tipocr == 1); found &= (tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES"); - found &= (ricl ? TRUE : tipodet == 3); if (found) { imp = pimr.get_real("R0"); @@ -88,7 +86,6 @@ bool classify_pim(TRectype& pimr, real& imp, real& iva, tiporec& t) found = (tipomov == 2 && tipodet != 9 && (tipocr == 1 || (tipocr == 5 && tipodet == 3))); found &= tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES"; - found &= (ricl ? TRUE : tipodet == 3); if (found) { imp = pimr.get_real("R0");