Patch level : 12.0 790

Files correlati     : f1lib
Commento            : Corretto tipoiva
This commit is contained in:
Simone Palacino 2019-05-17 17:03:08 +02:00
parent d7f754c5e5
commit fed08f3d54

View File

@ -77,11 +77,6 @@ const char* get_codcaus(const char * tipodoc, const char* codcf)
return get_ini_codcaus(nc);
}
bool check_causale(const TString& cod_caus)
{
return check_causale(cod_caus, "FA") || check_causale(cod_caus, "NC");
}
bool get_endatareg()
{
return ini_get_bool(FILE_CONFIG, FILE_SECTION, "endatareg");
@ -112,6 +107,11 @@ void set_dataendreg(const TString& date)
ini_set_string(FILE_CONFIG, FILE_SECTION, "dataendreg", date);
}
bool check_causale(const TString& cod_caus)
{
return check_causale(cod_caus, "FA") || check_causale(cod_caus, "NC");
}
bool check_causale(const TString& cod_caus, const TString& tipo_doc)
{
TCausale caus(cod_caus);
@ -124,7 +124,7 @@ bool check_causale(const TString& cod_caus, const TString& tipo_doc)
bool nc;
bool nc_acq = false;
if ((nc = caus.tipo_doc() == "NC"))
nc_acq = caus.reg().tipo() == TIPO_REG_ACQ;
nc_acq = caus.reg().tipo() == iva_acquisti;
return nc && nc_acq;
}
return false;