kurogeek a1ca8439fc feat: Withholding Tax Certificate print format for Purchase Invoice
The Revenue Department's Sec. 50 bis form (approve_wh3_081156.pdf) as
the page background, with the invoice's data positioned in the form's
fields; two copies per certificate. Its AcroForm fields carry no Thai
font, so the PDF is not filled directly.

get_withholding_certificate(doc) resolves the payer and payee (13-digit
tax ID, one-line address), the certificate row from the category's
income_type, the P.N.D. return from the supplier type and income, and
the amounts in company currency with the tax in Thai words. Dates are
Buddhist Era.
2026-09-22 03:29:54 +00:00
2026-09-01 16:01:23 +07:00
2026-09-01 16:01:23 +07:00
2026-09-01 16:01:23 +07:00
2026-09-01 16:01:23 +07:00
2026-09-01 16:01:23 +07:00
2026-09-01 17:20:43 +07:00
2026-09-01 16:01:23 +07:00
2026-09-01 16:34:04 +07:00

Default Thai Company

Default Company Settings

Installation

You can install this app using the bench CLI:

cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app default_thai_company

Thai language

Every string the app adds (custom field labels, messages, print format and letter head text, Tax Withholding Category names) is translated in translations/th.csv; the same file overrides the upstream Thai for the standard labels the print formats show. The print formats embed Sarabun (public/fonts, OFL) so PDFs render Thai on servers without a Thai system font. Switch a user or the print language to th to use it.

Contributing

This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:

cd apps/default_thai_company
pre-commit install

Pre-commit is configured to use the following tools for checking and formatting your code:

  • ruff
  • eslint
  • prettier
  • pyupgrade

License

gpl-3.0

S
Description
No description provided
Readme
696 KiB
Languages
Python 90.2%
HTML 7.6%
JavaScript 2.2%