Corretta gestione del flag di movimento di sola IVA.
git-svn-id: svn://10.65.10.50/trunk@3628 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0814872523
commit
d588908f71
@ -144,7 +144,7 @@ BEGIN
|
||||
WARNING "La causale o il saldaconto richiedono il numero documento"
|
||||
END
|
||||
|
||||
LIST F_SOLAIVA 1 2
|
||||
LIST F_SOLAIVA 1 3
|
||||
BEGIN
|
||||
PROMPT 1 7 "Movimento di sola IVA "
|
||||
ITEM " |No"
|
||||
|
@ -2461,15 +2461,17 @@ bool TPrimanota_application::activate_numrif(bool init_pag)
|
||||
// Handler del checkbox di movimento di sola IVA
|
||||
bool TPrimanota_application::solaiva_handler(TMask_field& f, KEY key)
|
||||
{
|
||||
if (key == K_TAB && f.dirty())
|
||||
TMask& m = f.mask();
|
||||
const bool run = m.is_running();
|
||||
|
||||
if (key == K_TAB && (f.focusdirty() || !run))
|
||||
{
|
||||
TMask& m = f.mask();
|
||||
TPrimanota_application& a = app();
|
||||
|
||||
bool anchecg = f.get().empty();
|
||||
bool anchecg = f.get()[0] != 'X';
|
||||
bool recalcg = anchecg;
|
||||
|
||||
if (m.is_running() && a.is_fattura())
|
||||
if (run && a.is_fattura())
|
||||
{
|
||||
const TPartita* game = a.partite().first();
|
||||
|
||||
@ -2500,7 +2502,7 @@ bool TPrimanota_application::solaiva_handler(TMask_field& f, KEY key)
|
||||
m.show(F_DARE, anchecg);
|
||||
m.show(F_AVERE, anchecg);
|
||||
|
||||
if (m.is_running() && recalcg)
|
||||
if (run && recalcg)
|
||||
{
|
||||
TSheet_field& iva = a.ivas();
|
||||
const int righe = iva.items();
|
||||
|
Loading…
x
Reference in New Issue
Block a user