Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Migliorata gestione data nascita automatica clifo da C.F.


git-svn-id: svn://10.65.10.50/branches/R_10_00@22608 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-03-09 15:50:43 +00:00
parent ebeaf18246
commit e00e125041

View File

@ -400,7 +400,7 @@ bool TClifo_application::percip_handler(TMask_field& f, KEY key)
if (f.to_check(key) && full)
{
long percip = m.get_long(F_CODANAGPER);
const long percip = m.get_long(F_CODANAGPER);
const char tipo = m.get(F_TIPOAPER)[0];
TToken_string k;
@ -434,13 +434,13 @@ bool TClifo_application::percip_handler(TMask_field& f, KEY key)
}
if (c.empty()) m.set(F_COFI, anag.get(ANA_COFI));
if (p.empty()) m.set(F_PAIV, anag.get(ANA_PAIV));
if (m.get(F_TIPOAPER) == "F")
if (m.get(F_TIPOAPER)[0] == 'F')
{
const TRectype & fis = cache().get(LF_ANAGFIS, anag.get(ANA_CODANAGR));
const TRectype& fis = cache().get(LF_ANAGFIS, anag.get(ANA_CODANAGR));
if (!fis.empty())
{
if (m.get(F_DATANASC).empty()) m.set(F_DATANASC, fis.get(ANF_DATANASC));
if (m.get(F_DATANASC).empty())
m.set(F_DATANASC, fis.get(ANF_DATANASC));
if (m.get(F_COMNASC).empty())
m.set(F_COMNASC, fis.get(ANF_COMNASC), true);
m.set(F_SESSO, fis.get(ANF_SESSO));