From 6102c432508755b003871f6ce780c631b6cc097a Mon Sep 17 00:00:00 2001 From: bonazzi Date: Mon, 11 Sep 2017 22:56:06 +0000 Subject: [PATCH] Patch level : 12.0 438 Files correlati : cg4.exe MOdificato l'uso del credito precedente ( vedi cosea e gallo ) git-svn-id: svn://10.65.10.50/branches/R_10_00@24081 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/cg/cg4301.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cg/cg4301.cpp b/src/cg/cg4301.cpp index c3b94fc6e..fd62043ae 100755 --- a/src/cg/cg4301.cpp +++ b/src/cg/cg4301.cpp @@ -3993,6 +3993,12 @@ void TLiquidazione_app::write_liq(int month, const char* codatts) TRectype lim = get_lim(month+deltam); const real cred_util_F24 = lim.get_real("R16"); + if (((_freqviva == "M") && (month == 1)) || + ((_freqviva == "T") && (month == 3))) + { + risultato += cred_prec; + cred_prec = ZERO; + } credito_utilizzabile = credito_utilizzabile_inizio_anno; credito_utilizzabile -= credito_utilizzato(month + deltam); credito_utilizzabile += credito_autorizzato(month + deltam); @@ -4019,6 +4025,7 @@ void TLiquidazione_app::write_liq(int month, const char* codatts) { if (credito_compensabile) { + risultato += cred_prec; cred_prec = ZERO; if (credito_utilizzabile_inizio_anno > ZERO) {