Patch level : 12.0 796
Files correlati : cg4.exe Commento : Corretta gerstione del revrse charge non veniva più tolto dal volume d'affari
This commit is contained in:
parent
0d3c4656e2
commit
22b660ff15
@ -4164,10 +4164,10 @@ void TLiquidazione_app::write_liq(int month, const char* codatts)
|
|||||||
if (!look_pla(att))
|
if (!look_pla(att))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const real vf1 = _pla->get("R14");
|
const real vf1 = _pla->get_real("R14");
|
||||||
const real vf2 = _pla->get("S1");
|
const real vf2 = _pla->get_real("S1");
|
||||||
const real iaq = _pla->get("R11"); // IVA acquisti
|
const real iaq = _pla->get_real("R11"); // IVA acquisti
|
||||||
const real ppg = _pla->get("R12"); // pro-rata pagato
|
const real ppg = _pla->get_real("R12"); // pro-rata pagato
|
||||||
|
|
||||||
vol_aff_1 += vf1;
|
vol_aff_1 += vf1;
|
||||||
vol_aff_2 += vf2;
|
vol_aff_2 += vf2;
|
||||||
@ -4187,7 +4187,7 @@ void TLiquidazione_app::write_liq(int month, const char* codatts)
|
|||||||
const real ris = vf1 + vf2; // gia' esclusi: NS, B3, cess. amm
|
const real ris = vf1 + vf2; // gia' esclusi: NS, B3, cess. amm
|
||||||
|
|
||||||
// calcola nuovo prorata dal 1998 per ogni attivita' (miste: 1+2)
|
// calcola nuovo prorata dal 1998 per ogni attivita' (miste: 1+2)
|
||||||
const real rsa = ris - (es_c1a-es_c1a_am) - (es_c3-es_c3_am);
|
const real rsa = ris - (es_c1a-es_c1a_am) - (es_c3-es_c3_am) - ven_rev;
|
||||||
const real rsn = rsa - es_c1;
|
const real rsn = rsa - es_c1;
|
||||||
if (!rsa.is_zero())
|
if (!rsa.is_zero())
|
||||||
{
|
{
|
||||||
|
@ -1164,10 +1164,11 @@ void TLiquidazione_app::describe_pims(int month, const char* codatt, const bool
|
|||||||
real vrc = _pla->get_real("R18"); // Vendite reverse charge
|
real vrc = _pla->get_real("R18"); // Vendite reverse charge
|
||||||
real iaq = _pla->get_real("R11"); // IVA acquisti
|
real iaq = _pla->get_real("R11"); // IVA acquisti
|
||||||
real ppg = _pla->get_real("R12"); // pro-rata pagato
|
real ppg = _pla->get_real("R12"); // pro-rata pagato
|
||||||
|
real ven_rev = _pla->get_real("R18");
|
||||||
|
|
||||||
// calcola nuovo prorata per ogni attivita' (miste: 1+2)
|
// calcola nuovo prorata per ogni attivita' (miste: 1+2)
|
||||||
real pr;
|
real pr;
|
||||||
const real rsa = ris - (e3-e5) - (e4-e6);
|
const real rsa = ris - (e3-e5) - (e4-e6) - ven_rev;
|
||||||
const real rsn = rsa - e1;
|
const real rsn = rsa - e1;
|
||||||
|
|
||||||
if (!rsa.is_zero())
|
if (!rsa.is_zero())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user