Correzioni MI2269 e MI2270, relativi alla disabilitazione dei campi
Rettifica e Rimborso solo in annuale. git-svn-id: svn://10.65.10.50/trunk@4023 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6c3cde84d3
commit
7f29d708bc
@ -249,8 +249,11 @@ const char* Visliq_app::link_handler(TMask& m,
|
||||
else if (st.find("Versamenti") != -1)
|
||||
{ group = -4; firstfoc = F_DELDATE; }
|
||||
|
||||
m.show(group);
|
||||
m.enable(group);
|
||||
m.show(group);
|
||||
if ((group == -1 || group == -2) && app()._is_annual)
|
||||
m.disable(group);
|
||||
else
|
||||
m.enable(group);
|
||||
|
||||
if (doubleclick) m.field(firstfoc).set_focus();
|
||||
|
||||
@ -480,6 +483,8 @@ bool Visliq_app::vis_liq()
|
||||
|
||||
set_firm(dtt);
|
||||
int month = m.get_int(_freqviva == "M" ? F_MONTHS : F_TRIMS);
|
||||
if (month == 13) _is_annual = TRUE;
|
||||
else _is_annual = FALSE;
|
||||
if (month == 0)
|
||||
vis_all();
|
||||
else
|
||||
|
@ -40,6 +40,7 @@ class Visliq_app : public TApplication
|
||||
TArray _vers_rows, _liq_rows;
|
||||
TMask* _mask;
|
||||
bool _from_one;
|
||||
bool _is_annual;
|
||||
|
||||
const char* itoname(int m);
|
||||
|
||||
@ -114,3 +115,4 @@ public:
|
||||
virtual ~Visliq_app() {}
|
||||
};
|
||||
|
||||
inline Visliq_app& app() { return (Visliq_app&) main_app(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user