Patch level : 12.0
Files correlati : ef0100.cpp Commento: Negli effetti i campi ABI e CAB non venivano visualizzati se il campo IBAN veniva lasciato vuoto
This commit is contained in:
parent
b1f9400a53
commit
2bbcad8729
@ -415,7 +415,7 @@ bool TEffetti_mask::on_field_event(TOperable_field& o, TField_event e, long joll
|
||||
TCli_for & cf = (TCli_for &)cached_clifor(tipocf, codcf);
|
||||
const TString & iban = cf.get_iban();
|
||||
|
||||
if (iban.full())
|
||||
// if (iban.full())
|
||||
set(F_IBAN, iban, 0x3);
|
||||
|
||||
TToken_string& banp = cf.get_ban_pres();
|
||||
@ -457,6 +457,23 @@ bool TEffetti_mask::on_field_event(TOperable_field& o, TField_event e, long joll
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
case F_IBAN_STATO:
|
||||
if (mode() == MODE_MOD && e == fe_init)
|
||||
{
|
||||
TRelation * rel = app().get_relation();
|
||||
|
||||
if (rel != nullptr)
|
||||
{
|
||||
TRectype & rec = rel->lfile().curr();
|
||||
|
||||
if (rec.get(EFF_IBAN).empty())
|
||||
{
|
||||
set(F_CODABI, rec.get(EFF_CODABI));
|
||||
set(F_CODCAB, rec.get(EFF_CODCAB));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
case F_DATASCAD:
|
||||
if (e == fe_close)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user