aboutsummaryrefslogtreecommitdiff
path: root/clients/screens_dashboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/screens_dashboard.c')
-rw-r--r--clients/screens_dashboard.c57
1 files changed, 23 insertions, 34 deletions
diff --git a/clients/screens_dashboard.c b/clients/screens_dashboard.c
index 0c133b2..83b4f6a 100644
--- a/clients/screens_dashboard.c
+++ b/clients/screens_dashboard.c
@@ -268,18 +268,13 @@ static void select_fiscal_year(struct app *a)
}
}
static const char *const MAIN_ITEMS[] = {
- MK_SECTION "Bokföring",
- "Verifikat", "Underlag (inkorg)", "Bankavstämning",
- MK_SECTION "Fakturering",
+ "Verifikat", "Underlag (inkorg)", "Bankavstämning", "Mallar",
"Fakturor",
- MK_SECTION "Rapporter & bokslut",
+ "Lönekörningar",
"Rapporter", "Bokslut",
- MK_SECTION "Register",
- "Mallar", "Kunder", "Momsregler", "Företagsuppgifter", "Inställningar",
- MK_SECTION "Räkenskapsår",
+ "Bolaget", "System",
"Ingående balans", "Räkenskapsår",
- MK_SECTION "Övrigt",
- "Revision", "Logga ut / avsluta",
+ "Logga ut / avsluta",
};
void dashboard(struct app *a)
@@ -303,52 +298,46 @@ void dashboard(struct app *a)
if (sel < 0)
continue; /* Esc/back at the top level never exits */
switch (sel) {
- case 1:
+ case 0:
open_scene(a, "vouchers");
break;
- case 2:
+ case 1:
open_scene(a, "inbox");
break;
- case 3:
+ case 2:
open_scene(a, "bank");
break;
- case 5:
+ case 3:
+ open_scene(a, "templates");
+ break;
+ case 4:
open_scene(a, "invoices");
break;
- case 7:
+ case 5:
+ open_scene(a, "payroll");
+ break;
+ case 6:
open_scene(a, "reports");
break;
- case 8:
+ case 7:
open_scene(a, "bokslut");
break;
- case 10:
- open_scene(a, "templates");
- break;
- case 11:
- open_scene(a, "customers");
- break;
- case 12:
- open_scene(a, "rules");
- break;
- case 13:
+ case 8:
open_scene(a, "company");
break;
- case 14:
- open_scene(a, "settings");
+ case 9:
+ open_scene(a, "system");
break;
- case 16:
+ case 10:
open_scene(a, "ib");
break;
- case 17:
+ case 11:
select_fiscal_year(a);
break;
- case 19:
- open_scene(a, "audit");
- break;
- case 20:
+ case 12:
return;
default:
- break; /* section header */
+ break;
}
}
}