From 4488b6c2eb1a3ddf20e190ebd28953e4f3f01042 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Mon, 21 Sep 2026 09:56:01 +0200 Subject: payroll: lönebesked PDF and mail (schema v11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/payslip.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/payslip.h (limited to 'src/payslip.h') diff --git a/src/payslip.h b/src/payslip.h new file mode 100644 index 0000000..291b35d --- /dev/null +++ b/src/payslip.h @@ -0,0 +1,34 @@ +#ifndef BOKF_PAYSLIP_H +#define BOKF_PAYSLIP_H + +#include +#include + +struct payslip_data { + struct { + const char *name; + const char *address; + const char *postal_code; + const char *city; + const char *org_nr; + const char *phone; + const char *email; + } employer; + const char *employee_name; + const char *personal_no_masked; + const char *period; + const char *pay_date; + int tax_table; + int tax_column; + int64_t gross_ore; + int64_t tax_ore; + int64_t avgifter_ore; + int64_t net_ore; + const char *run_ref; + int64_t rate_bp; +}; + +int payslip_render(const struct payslip_data *d, unsigned char **out, + size_t *len); + +#endif -- cgit v1.3