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:
parent
b644ebd9e6
commit
fd0cae4c34
@ -896,7 +896,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt)
|
|||||||
real fcv = _pim->get_real("R14");
|
real fcv = _pim->get_real("R14");
|
||||||
|
|
||||||
/* le porche fatture in ritardo */
|
/* le porche fatture in ritardo */
|
||||||
TToken_string fr(_pim_r->get("S1"));
|
TToken_string fr(_pim->get("S1"));
|
||||||
real rti(fr.get(0));
|
real rti(fr.get(0));
|
||||||
real rtv(fr.get(1));
|
real rtv(fr.get(1));
|
||||||
|
|
||||||
@ -1188,7 +1188,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt)
|
|||||||
_pam->rewrite();
|
_pam->rewrite();
|
||||||
_pum->rewrite();
|
_pum->rewrite();
|
||||||
_pom->rewrite();
|
_pom->rewrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void TLiquidazione_app::write_liq(int month, const char* codatts)
|
void TLiquidazione_app::write_liq(int month, const char* codatts)
|
||||||
// Calcolo liq. mensili e liq. annuali
|
// Calcolo liq. mensili e liq. annuali
|
||||||
|
@ -141,14 +141,10 @@ void TLiquidazione_app::recalc_ventilation(int month, const char* codatt)
|
|||||||
TString16 tipoiva(_iva->get("S1"));
|
TString16 tipoiva(_iva->get("S1"));
|
||||||
TString16 reg = *_pim_codreg;
|
TString16 reg = *_pim_codreg;
|
||||||
|
|
||||||
/*
|
// pare che questo fosse totalmente folle e idiota
|
||||||
* se non si e' settato il ricalcolo nei parametri ditta
|
// ci si chiede quindi che cazzo abbia detto la Scudeler
|
||||||
* considera soltanto quelli con detraibilita' == 3
|
// if (!_isricacq && tipodet != 3)
|
||||||
* (passaggi interni)
|
// continue;
|
||||||
* sensu Scudler 1994
|
|
||||||
*/
|
|
||||||
if (!_isricacq && tipodet != 3)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* caso particolare SENSU Vladimiro (1995) #MI3001
|
* caso particolare SENSU Vladimiro (1995) #MI3001
|
||||||
|
@ -17,7 +17,6 @@ bool classify_pim(TRectype& pimr, real& imp, real& iva, tiporec& t)
|
|||||||
|
|
||||||
const bool vola = pimr.get_bool("B2");
|
const bool vola = pimr.get_bool("B2");
|
||||||
const bool rimb = pimr.get_bool("B3");
|
const bool rimb = pimr.get_bool("B3");
|
||||||
const bool ricl = pimr.get_bool("B4");
|
|
||||||
|
|
||||||
TString tipoiva = pimr.get("S5");
|
TString tipoiva = pimr.get("S5");
|
||||||
|
|
||||||
@ -76,7 +75,6 @@ bool classify_pim(TRectype& pimr, real& imp, real& iva, tiporec& t)
|
|||||||
case base_ventilazione:
|
case base_ventilazione:
|
||||||
found = (tipomov == 2 && tipodet != 9 && tipocr == 1);
|
found = (tipomov == 2 && tipodet != 9 && tipocr == 1);
|
||||||
found &= (tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES");
|
found &= (tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES");
|
||||||
found &= (ricl ? TRUE : tipodet == 3);
|
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
imp = pimr.get_real("R0");
|
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 &&
|
found = (tipomov == 2 && tipodet != 9 &&
|
||||||
(tipocr == 1 || (tipocr == 5 && tipodet == 3)));
|
(tipocr == 1 || (tipocr == 5 && tipodet == 3)));
|
||||||
found &= tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES";
|
found &= tipoiva != "NS" && tipoiva != "NI" && tipoiva != "ES";
|
||||||
found &= (ricl ? TRUE : tipodet == 3);
|
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
imp = pimr.get_real("R0");
|
imp = pimr.get_real("R0");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user