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:
parent
475c494a89
commit
76cff521d5
@ -1963,15 +1963,13 @@ bool TPrimanota_application::caus_modify_handler(TMask_field& f, KEY key)
|
|||||||
bool ok = suspended_handler(f, key);
|
bool ok = suspended_handler(f, key);
|
||||||
if (!ok) return false;
|
if (!ok) return false;
|
||||||
|
|
||||||
|
|
||||||
const TMask& m = f.mask();
|
const TMask& m = f.mask();
|
||||||
const int ann = m.get_int(F_ANNOIVA);
|
const int ann = m.get_int(F_ANNOIVA);
|
||||||
const TString& cau = f.get();
|
const TString& cau = f.get();
|
||||||
const TCausale c(cau, ann);
|
const TCausale c(cau, ann);
|
||||||
if (!c.ok()) return false;
|
if (!c.ok()) return false;
|
||||||
|
|
||||||
ok = app().causale().similar(c);
|
|
||||||
|
|
||||||
|
const TCausale& k = app().causale();
|
||||||
const TString& msg = c.compatible(k);
|
const TString& msg = c.compatible(k);
|
||||||
if (msg.not_empty()) // La causale non e' compatibile
|
if (msg.not_empty()) // La causale non e' compatibile
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user