Patch level : 10.0 646

Files correlati     : cg4.exe
Ricompilazione Demo : [ ]
Commento            :

Bug   	0001564: Liquidazione IVA

Se una attività ha solo acquisti indeducibili questi non vengono esposti


git-svn-id: svn://10.65.10.50/trunk@20146 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2010-02-19 14:52:39 +00:00
parent 6a5fd83989
commit c751a801ef

View File

@ -1009,13 +1009,16 @@ void TLiquidazione_app::describe_pims(int month, const char* codatt, const bool
TString att(tmpatt);
look_plm(m, att);
real ad1, ad2;
if (tot != NULL)
if (tot == NULL)
{
tot->_r6 += _pom->get_real("R0"); // acq. intracomunitari
tot->_r7 += _pom->get_real("R1"); // inded. art 19
tot->_r8 += _pom->get_real("R2"); // IVA su inded. art. 19
tot = new _DescrItem(TOT_ROW);
_descr_arr.insert(tot, -1);
}
tot->_r6 += _pom->get_real("R0"); // acq. intracomunitari
tot->_r7 += _pom->get_real("R1"); // inded. art 19
tot->_r8 += _pom->get_real("R2"); // IVA su inded. art. 19
t->_r0 += _pom->get_real("R3"); // acq. ammortizz. detr
t->_r1 += _pom->get_real("R4"); // IVA acq. ammort. detr
t->_r2 += _pum->get_real("R2"); // ammort. detr. 6%
@ -1046,19 +1049,16 @@ void TLiquidazione_app::describe_pims(int month, const char* codatt, const bool
t->_s0 = ttm;
t->_f0 = _prorata.percentuale(_year)!=INVALID_PRORATA && (month != 13); // flag per segnalare l'esistenza
if (tot != NULL)
{
tot->_r9 += _pom->get_real("R9"); // acq. inded. su ricavi esenti
tot->_r10 += _pom->get_real("R10"); // IVA acq. inded. su ricavi esenti
// passaggi interni
real aipip(tot->_s0); // progressivo ...
real aipivp(tot->_s1); // ... (che mazzata sulle palle...)
aipip += _pum->get_real("R8"); // acq. inded. per pass. int
aipivp += _pum->get_real("R9"); // IVA acq. inded. per pass. int
tot->_s0 = aipip.string(); // risbatto ...
tot->_s1 = aipivp.string(); // ..
}
tot->_r9 += _pom->get_real("R9"); // acq. inded. su ricavi esenti
tot->_r10 += _pom->get_real("R10"); // IVA acq. inded. su ricavi esenti
// passaggi interni
real aipip(tot->_s0); // progressivo ...
real aipivp(tot->_s1); // ... (che mazzata sulle palle...)
aipip += _pum->get_real("R8"); // acq. inded. per pass. int
aipivp += _pum->get_real("R9"); // IVA acq. inded. per pass. int
tot->_s0 = aipip.string(); // risbatto ...
tot->_s1 = aipivp.string(); // ..
// spese generali.
real spgnp(t->_s2); // progressivo ...