From 6e182b356edde60bdfd87eb603ff30551b27773b Mon Sep 17 00:00:00 2001 From: mtollari Date: Thu, 24 May 2018 08:33:51 +0000 Subject: [PATCH] Patch level : 12.0 576 Files correlati : tf Commento : - Sistemata importazione partita iva esteri che inizia per 8 o 9 nel trasferimento fatture - Sistemata lettura progressivo liq trim git-svn-id: svn://10.65.10.50/branches/R_10_00@24497 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/tf/tf0100.cpp | 7 ++++--- src/tf/tf0500.cpp | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/tf/tf0100.cpp b/src/tf/tf0100.cpp index f279ee988..c06548ec9 100644 --- a/src/tf/tf0100.cpp +++ b/src/tf/tf0100.cpp @@ -1137,8 +1137,8 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) TVariant vtipocf = strarr->get(_tipocf), vcodcf = strarr->get(_codcf), voccas = strarr->get(_occas); #ifdef DBG - //if(vtipocf.as_string() == "C" && (vcodcf.as_string() == "2699" || vcodcf.as_string() == "3610")) - if(voccas.as_string().full()) + if(vtipocf.as_string() == "F" && (vcodcf.as_string() == "55" || vcodcf.as_string() == "45")) + //if(voccas.as_string().full()) bool tolla = true; #endif @@ -1178,7 +1178,8 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) tff0400f.set("P4_FISCIVAPAESE", "OO"); tff0400f.set("P4_FISCIVACOD", "99999999999"); } - else if (cedeprest.stato_partita_IVA().full() && cedeprest.partita_IVA().full() && cedeprest.partita_IVA()[0] != '8' && cedeprest.partita_IVA()[0] != '9') + else if (cedeprest.stato_partita_IVA().full() && cedeprest.partita_IVA().full() + && (cedeprest.partita_IVA()[0] != '8' && cedeprest.partita_IVA()[0] != '9' || !cedeprest.italiano())) { tff0400f.set("P4_FISCIVAPAESE", cedeprest.stato_partita_IVA()); tff0400f.set("P4_FISCIVACOD", cedeprest.partita_IVA()); diff --git a/src/tf/tf0500.cpp b/src/tf/tf0500.cpp index 638cfc0f1..60a4a8944 100644 --- a/src/tf/tf0500.cpp +++ b/src/tf/tf0500.cpp @@ -195,7 +195,12 @@ bool TIvaSend_app::generate(TIvaSend_msk& msk) TRectype rowLia = getLia(msk.get_int(F_ANNO)); // Decido di utilizzare I10 come numero progressivo di trasmissione - int prog = rowLia.get_int("I14"); prog++; + int prog = rowLia.get_int("I14"); + if(prog == 0) + { + prog = getLia(msk.get_int(F_ANNO) - 1).get_int("I14"); + } + prog++; TString nomeFile; nomeFile << "IT" << getAnagDitta().get("PAIV") << TIPO_FILE << prog << ".csv";