Frappe's money_in_words() produces "AZN Dörd Min Doqquz Yüz yalnız." for 1234.00 AZN — grammatically gettext-friendly but not how Azerbaijani documents actually look. Native convention is "Min iki yüz otuz dörd manat 56 qəpik": sentence-case number, lowercase currency word, fraction as digits, no "only" suffix. format_in_words_az is hooked as a validate doc_event on every doctype that carries in_words / base_in_words (11 in total: Sales/Purchase Order, Sales/Purchase Invoice, Quotation, Delivery Note, etc.). Runs after the controller's own set_total_in_words has populated the field, then overwrites it. No-op for any language other than az. Uses grand_total (not rounded_total) to preserve qəpik precision, since ERPNext's Rounded Total can round to whole manat per the Currency's rounding_method. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| jey_erp | ||
| .gitignore | ||
| BANK_INTEGRATION_PLAN.md | ||
| README.md | ||
| TASK_CONTEXT.md | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Jey Erp
Azərbaycan localization for JeyERP
License
unlicense