diff --git a/cd/test/fp1048.txt b/cd/test/fp1048.txt new file mode 100644 index 000000000..7e2249b12 --- /dev/null +++ b/cd/test/fp1048.txt @@ -0,0 +1,3 @@ +fp0.exe + +Bug corretto su comune residenza fiscale diff --git a/cd/test/fp1048a.ini b/cd/test/fp1048a.ini new file mode 100644 index 000000000..d39e559f6 --- /dev/null +++ b/cd/test/fp1048a.ini @@ -0,0 +1,19 @@ +[Main] +Demo=0 + +[fp0] +File(0) = fp0.exe|X +Patch = 1048 +Versione = 21511200 + +[fp] +Data = 30-03-2021 +Descrizione = Fattura Elettronica +Dischi = 1 +Moduli = cg,ve +OEM = +Patch = 1048 +PostProcess = +PreProcess = +Versione = 21511200 + diff --git a/cd/test/fp1048a1.zip b/cd/test/fp1048a1.zip new file mode 100644 index 000000000..a4c00adbc Binary files /dev/null and b/cd/test/fp1048a1.zip differ diff --git a/src/cg/cglib07.cpp b/src/cg/cglib07.cpp index e9648515d..6fc307c6d 100644 --- a/src/cg/cglib07.cpp +++ b/src/cg/cglib07.cpp @@ -341,9 +341,9 @@ bool TAnagrafica::init(const TRectype& rec) // Comune di residenza fiscale o domicilio _stato_estero = rec.get_int(ANA_STATORES); - _com_res = rec.get(ANA_COMRF); - if (_com_res.empty()) - _com_res = rec.get(ANA_COMRES); + _com_res = rec.get(ANA_COMRES); + //if (_com_res.empty()) + // _com_res = rec.get(ANA_COMRF); build_ind_res(rec, ANA_INDRES, ANA_CIVRES); _cap_res = rec.get(ANA_CAPRES);