From c751a801ef82cb2224fe472c8e24ecf38af1d439 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 19 Feb 2010 14:52:39 +0000 Subject: [PATCH] Patch level : 10.0 646 Files correlati : cg4.exe Ricompilazione Demo : [ ] Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cg/cg4304.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cg/cg4304.cpp b/cg/cg4304.cpp index 429e45ceb..6cde06046 100755 --- a/cg/cg4304.cpp +++ b/cg/cg4304.cpp @@ -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 ...