From 98941457c4671ec6c0197a6643ccc5ead448bcab Mon Sep 17 00:00:00 2001 From: bonazzi Date: Mon, 2 Oct 2017 17:32:52 +0000 Subject: [PATCH] Patch level : 12.0 454 Files correlati : cg0.exe Il programma di stampa progressivi IVA andava in loop. git-svn-id: svn://10.65.10.50/branches/R_10_00@24122 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/cg/cg0400.cpp | 8 ++++++-- src/cg/cg7600.cpp | 3 ++- src/cg/cg7700.cpp | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/cg/cg0400.cpp b/src/cg/cg0400.cpp index 981e5a337..80857f608 100755 --- a/src/cg/cg0400.cpp +++ b/src/cg/cg0400.cpp @@ -344,7 +344,9 @@ void TProgressivi_iva::look_pim() if (!is_key) _corr_array.add(codiva,ci); - while (classify_pim(pim.curr(), imponibile, imposta, tipo, TRUE)) + int last_tiporec = -1; + + while (classify_pim(pim.curr(), imponibile, imposta, tipo, TRUE, last_tiporec)) { switch(tipo) { @@ -563,7 +565,9 @@ void TProgressivi_iva::cerca_i_pim() continue; } - while (classify_pim(pim.curr(), imponibile, imposta, tipo, FALSE)) + int last_tiporec = - 1; + + while (classify_pim(pim.curr(), imponibile, imposta, tipo, FALSE, last_tiporec)) { switch(tipo) { diff --git a/src/cg/cg7600.cpp b/src/cg/cg7600.cpp index ca2a39d36..f8027c8ce 100644 --- a/src/cg/cg7600.cpp +++ b/src/cg/cg7600.cpp @@ -108,8 +108,9 @@ void TQuadro_VE_recordset::load() tiporec tipo; real imp; real iva; + int last_tiporec= -1; - if (classify_pim(pimr, imp, iva, tipo, true)) + if (classify_pim(pimr, imp, iva, tipo, true, last_tiporec)) { good = true; switch (tipo) diff --git a/src/cg/cg7700.cpp b/src/cg/cg7700.cpp index d2c0b7668..9e774e62c 100644 --- a/src/cg/cg7700.cpp +++ b/src/cg/cg7700.cpp @@ -171,8 +171,9 @@ void TQuadro_VF_recordset::load() const bool terremotati = int_tipo_iva11_acq == 16; real imp; real iva; + int Last_tiporec = -1; - if (classify_pim(pimr, imp, iva, tipo, true)) + if (classify_pim(pimr, imp, iva, tipo, true. last_tiporec)) { good = true; switch (tipo)