Patch level : 10.0

Files correlati     : pi0002.exe
Ricompilazione Demo : [ ]
Commento            :
Proposta automatica della causale di incasso


git-svn-id: svn://10.65.10.50/trunk@20544 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2010-06-07 11:09:06 +00:00
parent 9938c41d4c
commit 8f7cd35669

View File

@ -92,9 +92,21 @@ bool TPF_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
if (e == fe_modify) if (e == fe_modify)
update_sheet(); update_sheet();
break; break;
case F_CODCAUS:
if (e == fe_init)
{
// Cerca di proporre una causale in base alla configurazione della generazione effetti
const TString& codcaus = ini_get_string(CONFIG_DITTA, "ef", MOV_CODCAUS);
if (codcaus.full())
{
o.set(codcaus);
if (!o.check())
o.reset();
}
}
break;
case F_SHEET: case F_SHEET:
return on_sheet_event(o, e, jolly); return on_sheet_event(o, e, jolly);
break;
default: default:
if (jolly > 0) if (jolly > 0)
return on_sheet_event(o, e, jolly); return on_sheet_event(o, e, jolly);