summaryrefslogtreecommitdiff
path: root/clients/screens_dashboard.c
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 14:03:36 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 14:03:44 +0200
commit776dbdf6f6f12289c874fd9d1eada379f1b02a0b (patch)
tree8bdf34d311c5a2f02956b1bb94dc2b502eb738fa /clients/screens_dashboard.c
parentb0189d7d6b58a4761daebe761afeaf4a68a9296c (diff)
downloadbokf-0.1.57.tar.gz
bokf-0.1.57.zip
tui: flat menu, System hub, remembered attachment directoryv0.1.57
Diffstat (limited to 'clients/screens_dashboard.c')
-rw-r--r--clients/screens_dashboard.c43
1 files changed, 15 insertions, 28 deletions
diff --git a/clients/screens_dashboard.c b/clients/screens_dashboard.c
index 9deca37..83b4f6a 100644
--- a/clients/screens_dashboard.c
+++ b/clients/screens_dashboard.c
@@ -268,18 +268,11 @@ static void select_fiscal_year(struct app *a)
}
}
static const char *const MAIN_ITEMS[] = {
- MK_SECTION "Bokföring",
"Verifikat", "Underlag (inkorg)", "Bankavstämning", "Mallar",
- MK_SECTION "Fakturering",
"Fakturor",
- MK_SECTION "Lön",
"Lönekörningar",
- MK_SECTION "Rapporter & bokslut",
"Rapporter", "Bokslut",
- "Bolaget",
- MK_SECTION "System",
- "Skattetabeller", "Revision", "Systeminställningar",
- MK_SECTION "Räkenskapsår",
+ "Bolaget", "System",
"Ingående balans", "Räkenskapsår",
"Logga ut / avsluta",
};
@@ -305,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 4:
+ case 3:
open_scene(a, "templates");
break;
- case 6:
+ case 4:
open_scene(a, "invoices");
break;
- case 8:
+ case 5:
open_scene(a, "payroll");
break;
- case 10:
+ case 6:
open_scene(a, "reports");
break;
- case 11:
+ case 7:
open_scene(a, "bokslut");
break;
- case 12:
+ case 8:
open_scene(a, "company");
break;
- case 14:
- open_scene(a, "tax_tables");
- break;
- case 15:
- open_scene(a, "audit");
- break;
- case 16:
+ case 9:
open_scene(a, "system");
break;
- case 18:
+ case 10:
open_scene(a, "ib");
break;
- case 19:
+ case 11:
select_fiscal_year(a);
break;
- case 20:
+ case 12:
return;
default:
- break; /* section header */
+ break;
}
}
}