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
This commit is contained in:
villa 1995-06-28 10:38:48 +00:00
parent b644ebd9e6
commit fd0cae4c34
3 changed files with 7 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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");