diff options
Diffstat (limited to 'clients/bokftui.c')
| -rw-r--r-- | clients/bokftui.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/clients/bokftui.c b/clients/bokftui.c index 84d1a18..69d6690 100644 --- a/clients/bokftui.c +++ b/clients/bokftui.c @@ -35,13 +35,17 @@ static const struct scene SCENES[] = { { "bank", bank_screen }, { "invoices", invoices_screen }, { "customers", customers_screen }, + { "payroll", payroll_screen }, + { "employees", employees_screen }, + { "tax_tables", payroll_tax_tables_screen }, { "ib", ib_screen }, { "templates", templates_screen }, { "rules", rules_screen }, { "reports", reports_screen }, { "audit", audit_screen }, - { "settings", settings_screen }, { "company", company_screen }, + { "settings", company_screen }, /* ^R/--screen compatibility */ + { "system", system_screen }, { "bokslut", bokslut_screen }, { "yearinfo", bokslut_screen }, /* ^R compatibility */ }; @@ -142,11 +146,14 @@ static void config_load(struct app *a) snprintf(a->socket, sizeof a->socket, "%s", val); else if (strcmp(line, "user") == 0 && !a->username[0]) snprintf(a->username, sizeof a->username, "%s", val); + else if (strcmp(line, "attachment_dir") == 0 && + !a->attachment_dir[0]) + snprintf(a->attachment_dir, sizeof a->attachment_dir, "%s", val); } fclose(f); } -static void config_save(const struct app *a) +void config_save(struct app *a) { char path[512]; config_path(path, sizeof path); @@ -157,6 +164,8 @@ static void config_save(const struct app *a) fprintf(f, "server=%s\n", a->socket); if (a->username[0]) fprintf(f, "user=%s\n", a->username); + if (a->attachment_dir[0]) + fprintf(f, "attachment_dir=%s\n", a->attachment_dir); fclose(f); chmod(path, 0600); } @@ -329,13 +338,15 @@ static void usage(FILE *f) " --session ID reuse an open session (or BOKFD_SESSION)\n" " --screen NAME start in a view: dashboard, vouchers, inbox,\n" " bank, ib, templates, rules, reports, bokslut\n" - " (yearinfo is an alias), audit, settings,\n" - " company, invoices, customers\n" + " (yearinfo is an alias), audit, company,\n" + " invoices, customers, payroll, employees,\n" + " tax_tables, system (settings is an alias)\n" " --version\n"); } static void reset_modify_keys(void) { + putp("\033[<u"); putp("\033[>4m"); fflush(stdout); } |
