Patch level : 12.0 322

Files correlati     : 

Sistemato menu per gv
Corrette ablitazioni campi nella visualizzazione liquidazione

git-svn-id: svn://10.65.10.50/branches/R_10_00@23484 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2016-12-30 08:15:49 +00:00
parent 4c17469f42
commit 28ab6dd190
2 changed files with 32 additions and 15 deletions

View File

@ -390,13 +390,18 @@ bool Visliq_app::sel_mese_sh1 (TMask_field& f, KEY k)
int sel = sh.selected(); int sel = sh.selected();
int month = sh.selected()+1; int month = sh.selected()+1;
TToken_string& tt = sh.row(sh.selected()); TToken_string& tt = sh.row(sh.selected());
if (sh.items() == 4) TMask& sm = sh.sheet_mask();
if (sh.items() == 4)
month *= 3; month *= 3;
bool ok = false; if (sm.is_running() && !sm.stop_run(K_ENTER))
return true;
bool ok = true;
//if (m.dirty() || sh.sheet_mask().dirty()) //if (m.dirty() || sh.sheet_mask().dirty())
if (m.field(F_CREDPREC).dirty() || app()._sh_dirty || app()._sv_dirty) if (m.field(F_CREDPREC).dirty() || app()._sh_dirty || app()._sv_dirty || sm.dirty())
{ {
KEY k = yesnocancel_box(TR("Registrare le modifiche effettuate?")); KEY k = yesnocancel_box(TR("Registrare le modifiche effettuate?"));
if (k == K_YES) if (k == K_YES)
@ -405,16 +410,12 @@ bool Visliq_app::sel_mese_sh1 (TMask_field& f, KEY k)
app().read_general(m); app().read_general(m);
ok = (k == K_YES || k == K_NO); ok = (k == K_YES || k == K_NO);
} }
else
ok = true;
TMask& sm = sh.sheet_mask();
if (ok) if (ok)
{ {
if (sm.is_running()) sm.stop_run(K_ENTER); app().vis_one(month);
app().vis_one(month); app().read_general(m);
app().read_general(m);
} }
app().set_liq_rows(sh); app().set_liq_rows(sh);
@ -485,13 +486,19 @@ bool Visliq_app::sel_mese_sh2 (TMask_field& f, KEY k)
int month = sh.selected()+1; int month = sh.selected()+1;
if (sh.items() < 12) if (sh.items() < 12)
month *= 3; month *= 3;
TMask& sv = sh.sheet_mask();
// click su acconto // click su acconto
if (month > 12) return true; if (month > 12) return true;
bool ok = false; if (sv.is_running() && !sv.stop_run(K_ENTER))
return true;
bool ok = true;
//if (m.dirty()) //if (m.dirty())
if (m.field(F_CREDPREC).dirty() || app()._sh_dirty || app()._sv_dirty) if (m.field(F_CREDPREC).dirty() || app()._sh_dirty || app()._sv_dirty || sv.dirty())
{ {
KEY k = yesnocancel_box(TR("Registrazione modifiche effettuate?")); KEY k = yesnocancel_box(TR("Registrazione modifiche effettuate?"));
if (k == K_YES) if (k == K_YES)
@ -500,12 +507,9 @@ bool Visliq_app::sel_mese_sh2 (TMask_field& f, KEY k)
app().read_general(m); app().read_general(m);
ok = k == K_YES || k == K_NO; ok = k == K_YES || k == K_NO;
} }
else ok = true;
TMask& sv = sh.sheet_mask();
if (ok) if (ok)
{ {
if (sv.is_running()) sv.stop_run(K_ENTER);
app().vis_one(month); app().vis_one(month);
const bool compensabile = app()._lia->get("S9") == "CM"; const bool compensabile = app()._lia->get("S9") == "CM";
if ((app()._year >= 2000) && compensabile) if ((app()._year >= 2000) && compensabile)
@ -613,6 +617,9 @@ bool Visliq_app::vis_all()
sh.enable_column(id, true); sh.enable_column(id, true);
} }
} }
else
sh.enable_column(110);
// fill the mask in // fill the mask in
read_general(*_mask); read_general(*_mask);

View File

@ -109,7 +109,8 @@ Item_05 = "Stampa registri", "cg4 -3", "F"
Item_06 = "Stampa pro-rata", "cg5 -9", "F" Item_06 = "Stampa pro-rata", "cg5 -9", "F"
Item_07 = "Liste fatture", [CGMENU_026] Item_07 = "Liste fatture", [CGMENU_026]
Item_08 = "Gestione acconti IVA", [CGMENU_027] Item_08 = "Gestione acconti IVA", [CGMENU_027]
Item_09 = "Gestione versamenti IVA", <gvmenu.men> Item_09 = "Gestione versamenti IVA", [CGMENU_022]
Item_09 = "Gestione F24", <gvmenu.men>
Item_10 = "Operazioni annuali", [CGMENU_029] Item_10 = "Operazioni annuali", [CGMENU_029]
Item_11 = "IVA per cassa / differita", <icmenu.men> Item_11 = "IVA per cassa / differita", <icmenu.men>
Item_12 = "Gestione autotrasportatori", "cg4 -9", "F" Item_12 = "Gestione autotrasportatori", "cg4 -9", "F"
@ -212,6 +213,15 @@ Item_02 = "Apertura nuovo esercizio IVA", "cg4 -4 I", "F"
Item_03 = "Chiusura/Apertura conti", "cg4 -5", "F" Item_03 = "Chiusura/Apertura conti", "cg4 -5", "F"
Item_04 = "Chiusura/Apertura conti Contabilità sep.", "np0 -1", "F" Item_04 = "Chiusura/Apertura conti Contabilità sep.", "np0 -1", "F"
[CGMENU_022]
Caption = "Gestione versamenti IVA"
Picture = <cg01>
Module = 0
Flags = ""
Item_01 = "Estrazione versamenti", "cg4 -2 -D", "F"
Item_02 = "Gestione versamenti", "ba3 -0 %del", ""
Item_03 = "Stampa versamenti", "cg1 -3", "F"
[CGMENU_023] [CGMENU_023]
Caption = "Stampe di contabilità" Caption = "Stampe di contabilità"
Picture = <cg01> Picture = <cg01>