Patch level :2.2 295

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :modifica sulla TPrimanota_application; non si usa piu' la funzione similar


git-svn-id: svn://10.65.10.50/trunk@13678 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2006-01-09 17:10:47 +00:00
parent 475c494a89
commit 76cff521d5

View File

@ -1963,15 +1963,13 @@ bool TPrimanota_application::caus_modify_handler(TMask_field& f, KEY key)
bool ok = suspended_handler(f, key);
if (!ok) return false;
const TMask& m = f.mask();
const int ann = m.get_int(F_ANNOIVA);
const TString& cau = f.get();
const TCausale c(cau, ann);
if (!c.ok()) return false;
ok = app().causale().similar(c);
const TCausale& k = app().causale();
const TString& msg = c.compatible(k);
if (msg.not_empty()) // La causale non e' compatibile
{