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
This commit is contained in:
mtollari 2018-05-24 08:33:51 +00:00
parent 273a92bc41
commit 6e182b356e
2 changed files with 10 additions and 4 deletions

View File

@ -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());

View File

@ -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";