From f3cac572f7acba3f8b064095cd9ed93fabf8a628 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Fri, 14 Feb 2020 18:55:37 +0100 Subject: [PATCH] Patch level : 12.0 946 Files correlati : cg4.exe Commento : Esposto il credito derivante dal versamento dell'acconto in dicembre --- src/cg/cg4304.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/cg/cg4304.cpp b/src/cg/cg4304.cpp index df1640bf0..95f1f0963 100755 --- a/src/cg/cg4304.cpp +++ b/src/cg/cg4304.cpp @@ -2467,17 +2467,11 @@ void TLiquidazione_app::set_grand_2000(_DescrItem& d, int &rw) } else { - if (_month = 12) - { - const real i = -iva; - set_row(rw++, FR("@23gIMPORTO A CREDITO@75g%r"), &i); - } - if (_isannual) - { - const real& credito = d._r20; - if (credito > ZERO) - set_row(rw++,FR("@11gCREDITO RIPORTATO NELL'ANNO SUCCESSIVO@58g%r"), &credito); - } + if (_month == 12) + print_importo(rw++, TR("IMPORTO A CREDITO"), iva); + else + if (_isannual && d._r20 > ZERO) + print_importo(rw++, TR("CREDITO RIPORTATO NELL'ANNO SUCCESSIVO"), -d._r20); if (_is_visliq) rw++; }