diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-21 09:56:01 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-21 09:56:01 +0200 |
| commit | 4488b6c2eb1a3ddf20e190ebd28953e4f3f01042 (patch) | |
| tree | b52812145147669d04f23a57d41b3f604104963f /src/payslip.h | |
| parent | e692f0fbe16342195297048534ad1be227493107 (diff) | |
| download | bokf-4488b6c2eb1a3ddf20e190ebd28953e4f3f01042.tar.gz bokf-4488b6c2eb1a3ddf20e190ebd28953e4f3f01042.zip | |
payroll: lönebesked PDF and mail (schema v11)
Diffstat (limited to 'src/payslip.h')
| -rw-r--r-- | src/payslip.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 <stddef.h> +#include <stdint.h> + +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 |
