diff options
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 |
