Thai VAT is filed on P.P.30 as output tax (ภาษีขาย, collected on sales) net of input tax (ภาษีซื้อ, paid on purchases); ERPNext's wizard makes a single VAT account. Both join the per-company tax accounts created on Company save and fixture import; a patch adds them to existing companies. Account names are translated for the chart of accounts tree.
9 lines
317 B
Python
9 lines
317 B
Python
from default_thai_company.tax_withholding import ensure_company_accounts, thai_companies
|
|
|
|
|
|
def execute():
|
|
"""Output VAT / Input VAT were added to COMPANY_ACCOUNTS; Company.on_update
|
|
only runs on save, so give existing Thai companies the pair."""
|
|
for company in thai_companies():
|
|
ensure_company_accounts(company)
|