From a02daab78908ae5416ecbb73b36bd8c1e43de756 Mon Sep 17 00:00:00 2001 From: bonazzi Date: Fri, 10 Mar 2017 16:17:57 +0000 Subject: [PATCH] Patch level : 12.0 36 Files correlati : cg4.exe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Non stampava più i progressivi precedenti nella stampa registri git-svn-id: svn://10.65.10.50/branches/R_10_00@23682 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/cg/cg4301.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/cg/cg4301.cpp b/src/cg/cg4301.cpp index e6140db3f..3d04a7db3 100755 --- a/src/cg/cg4301.cpp +++ b/src/cg/cg4301.cpp @@ -568,17 +568,9 @@ void TLiquidazione_app::zero_att(int month, const char* codatt) TString80 codtab; TString16 att; TString4 year; - int m, start, stop; - - start = 0; stop = 1; - - if (_recalc_regis) - { - // Se stiamo ricalcolando per registri(_recalc_regis) azzera PRM e PRP - start = 2; stop = 3; - } + int m; // PIM / PIS - for (int i = start; i <= stop; i++) // Ciclo per le tabelle da azzerare + for (int i = 0; i < 4; i++) // Ciclo per le tabelle da azzerare { TTable * tab = (TTable*) arr[i]; CHECK(tab, "Invalid table element"); @@ -2464,14 +2456,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array & * Onde evitare ripetizioni di codice adotto il metodo sottoindicato, * come nell'azzeramento di zero_att(). */ - int start = 0, stop = 1; - if (_recalc_regis) // ricalcolo solo per registri. - { - start = 2; - stop = 3; - } - - for (int i=start; i<=stop; i++) // Ciclo per le tabelle + for (int i = 0; i< 4; i++) // Ciclo per le tabelle { if (i == 1 || i == 3) //Is it a valid PIS/PRP (vedi anche sel. cursore & date_ok())? if ((liqmonth == 0 && month < 13) || (month == 13 && liqmonth != 12))