71eda0bec90b5e26b77693ba24c9ab52a91364d3
Default Standard Sales Invoice and Tax Invoice/Receipt printed the Additional Discount Amount among the charges, after the Total line but with no total after the discount. App copies of ERPNext's totals includes are swapped in via doc.print_templates: - taxes.html: a discount on Net Total is followed by the Net Total line ahead of the charges; a discount on Grand Total stays after them. - total.html: with inclusive tax, "Total (Without Tax)" is the total before the discount (net_total + discount_amount); upstream printed net_total, which already has the discount taken off, so the same figure appeared before and after the discount line.
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
Languages
Python
89.8%
HTML
7.9%
JavaScript
2.3%