Patch level : 10.948

Files correlati     :  ve0.exe
Ricompilazione Demo : [ ]
Commento            :

Sui documentio clienti, se il cliente non e' un finanzioatore della commessa ora viene proposto il CUP delprimo finanziatore


git-svn-id: svn://10.65.10.50/branches/R_10_00@21735 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2011-03-03 15:14:07 +00:00
parent 22a184cabd
commit ad13d4030c

View File

@ -2742,8 +2742,22 @@ bool codcms_handler(TMask_field& f, KEY key)
key.add(mask.get(F_TIPOCF));
key.add(mask.get(F_CODCF));
const TRectype & cfcms1 = __cfcm.get(key);
mask.set(F_CUP, cfcms1.get(CFCMS_CUP), 3);
mask.set(F_CIG, cfcms1.get(CFCMS_CIG), 3);
if (cfcms1.empty())
{
key = codcms;
key.add("C");
key.add(1);
const TRectype & cfcms2 = cache().get(LF_CFCMS, key);
mask.set(F_CUP, cfcms2.get(CFCMS_CUP), 3);
mask.set(F_CIG, cfcms2.get(CFCMS_CIG), 3);
}
else
{
mask.set(F_CUP, cfcms1.get(CFCMS_CUP), 3);
mask.set(F_CIG, cfcms1.get(CFCMS_CIG), 3);
}
}
key.cut(0);