kurogeek e7d0a545b1 feat: print formats for Purchase Invoice, Purchase Order, Sales Order
Default Standard Purchase Invoice / Purchase Order / Sales Order, laid out
like the Sales Invoice and Quotation formats: dates (and the supplier's or
customer's reference numbers) in the heading, party block with Tax ID and
contact, essentials-only item table, right-aligned totals with the amount in
words beside Grand Total, signature lines.

taxes include: purchase "Deduct" charges (withholding tax) print negative and
"Valuation" charges are skipped so the lines add up to Grand Total; charge
descriptions are translated so the WHT category names print in Thai.
2026-09-23 08:31:14 +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.

Withholding tax certificate

A paid Purchase Invoice with Apply Tax Withholding Amount gets a Withholding Tax Certificate button that downloads the Revenue Department's Sec. 50 bis form (หนังสือรับรองการหักภาษี ณ ที่จ่าย, two copies) as a PDF: the Withholding Tax Certificate print format lays the invoice's data over the official form (public/images). The row the payment is reported on comes from Type of Income Paid on the Tax Withholding Category (set for the shipped categories; pick it for your own), and the ภ.ง.ด. return is ticked from the Supplier's type: ภ.ง.ด.53 for juristic payees, ภ.ง.ด.1ก / 2 / 3 by income type for individuals. เล่มที่ / เลขที่ (certificate book numbers) and ลำดับที่ (the line in the return) are left for the accountant.

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 GPL-3.0
832 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 84.8%
HTML 11.9%
JavaScript 3.3%