Almost every GCC implementation we run includes the same request: "the invoice must be in Arabic and English." Getting it right takes more than adding translated labels. Arabic runs right to left, PDF fonts must support Arabic shaping, item and customer names need Arabic versions, and Saudi invoices need a QR code and, under ZATCA Phase 2, a cleared or reported XML behind them.
This guide shows how to build an ERPNext Arabic invoice print format that is bilingual, readable and print-safe, and explains what the rules in the UAE and Saudi Arabia actually say about language. It is aimed at ERPNext developers and consultants, with code you can adapt, based on ERPNext v15 and v16.
Key takeaways
- Saudi Arabia: tax invoices must be in Arabic; other languages may be added as translation, according to ZATCA guidance.
- UAE: a VAT tax invoice can be in English, but the FTA may ask for Arabic translations of records, and consumer protection rules expect Arabic on invoices given to consumers. Bilingual is the safe default for B2C.
- Use a Jinja print format with paired English and Arabic blocks, RTL direction on Arabic text and fonts that support Arabic in PDF.
- Store Arabic names as fields on Item, Customer and Company rather than translating at print time.
Invoice looks fine in English but breaks in Arabic?
Send us your current invoice PDF. In a free 30-minute call we will review it against UAE or Saudi requirements and the ERPNext print setup.
Review my invoice → WhatsApp us: +91 8089051848
Or email info@nexeves.com
What the rules say about invoice language
| Country | Language position (verify with your adviser) | Other requirements to remember |
|---|---|---|
| Saudi Arabia | ZATCA guidance states tax invoices must be issued in Arabic, with any other language treated as translation; Arabic or Hindi numerals are accepted | QR code on simplified tax invoices; Phase 2 XML with cryptographic stamp, cleared or reported to ZATCA, through a ZATCA-compliant solution |
| UAE | The VAT invoice particulars do not require Arabic; the FTA may accept English records and request certified Arabic translation. Consumer invoices are expected to include Arabic under consumer protection rules | Words "Tax Invoice", TRN, VAT in AED; e-invoicing being introduced in phases |
| Bahrain | Check current NBR requirements | VAT 10%, VAT number on invoice |
| Qatar and Kuwait | No VAT in force; commercial practice often bilingual | Commercial registration details |
For the tax setup behind the invoice, see ERPNext UAE VAT and corporate tax, UAE e-invoicing and ZATCA Phase 2.
Step 1: Add Arabic fields to masters
Translation at print time with _() works for fixed labels, but not for names. Add custom fields:
| DocType | Custom field | Example |
|---|---|---|
| Company | company_name_ar, address_ar | شركة نيكسيفز |
| Customer | customer_name_ar | Customer legal name in Arabic |
| Item | item_name_ar, description_ar | Arabic product name |
| Address | address_line_ar (optional) | Arabic address for KSA buyers |
| Sales Invoice Item | item_name_ar (fetched from Item) | Fetched so it is frozen on the invoice |
Use "Fetch From" on the invoice item field (item_code.item_name_ar) so the Arabic name is stored on each invoice, which keeps old invoices unchanged if the master is edited later. Custom fields are covered in custom fields, reports and workflows.
Step 2: Build the Jinja print format
Create a Print Format for Sales Invoice, set it as custom with type Jinja, and use a two-column layout: English on the left, Arabic on the right with dir="rtl". A trimmed example:
<div class="inv" dir="ltr">
<table class="head">
<tr>
<td><h2>Tax Invoice</h2></td>
<td class="ar" dir="rtl"><h2>فاتورة ضريبية</h2></td>
</tr>
<tr>
<td>Invoice No: {{ doc.name }}<br>Date: {{ frappe.utils.formatdate(doc.posting_date) }}</td>
<td class="ar" dir="rtl">رقم الفاتورة: {{ doc.name }}<br>التاريخ: {{ frappe.utils.formatdate(doc.posting_date) }}</td>
</tr>
<tr>
<td>Seller VAT No: {{ doc.company_tax_id or "" }}</td>
<td class="ar" dir="rtl">الرقم الضريبي للبائع: {{ doc.company_tax_id or "" }}</td>
</tr>
</table>
<table class="items">
<tr>
<th>Description / الوصف</th><th>Qty / الكمية</th>
<th>Rate / السعر</th><th>Amount / المبلغ</th>
</tr>
{% for row in doc.items %}
<tr>
<td>{{ row.item_name }}<br><span class="ar" dir="rtl">{{ row.item_name_ar or "" }}</span></td>
<td>{{ row.get_formatted("qty") }}</td>
<td>{{ row.get_formatted("rate", doc) }}</td>
<td>{{ row.get_formatted("amount", doc) }}</td>
</tr>
{% endfor %}
</table>
<table class="totals">
<tr><td>Total excl. VAT / الإجمالي غير شامل الضريبة</td><td>{{ doc.get_formatted("net_total") }}</td></tr>
<tr><td>VAT / ضريبة القيمة المضافة</td><td>{{ doc.get_formatted("total_taxes_and_charges") }}</td></tr>
<tr><td><b>Total incl. VAT / الإجمالي شامل الضريبة</b></td><td><b>{{ doc.get_formatted("grand_total") }}</b></td></tr>
</table>
</div>
Use get_formatted so amounts follow the currency precision, for example three decimals for BHD and KWD and two for AED and SAR. For a deeper Jinja tutorial, see advanced print formats with Jinja, and for no-code changes, how to customise print formats.
Step 3: CSS and fonts for Arabic in PDF
ERPNext generates PDFs with wkhtmltopdf (and, in recent versions, can use a Chrome-based generator). Arabic shaping depends on the fonts installed on the server. Install a font with good Arabic support, such as Noto Naskh Arabic or Amiri, and reference it in the print format CSS:
.inv { font-family: "Noto Sans", "Noto Naskh Arabic", "Amiri", sans-serif; font-size: 11px; }
.ar { text-align: right; font-family: "Noto Naskh Arabic", "Amiri", serif; }
.head td { width: 50%; vertical-align: top; }
.items { width: 100%; border-collapse: collapse; margin-top: 10px; }
.items th, .items td { border: 1px solid #ccc; padding: 4px 6px; }
.totals { width: 50%; margin-left: auto; margin-top: 8px; }
Test with long Arabic item names, mixed Arabic and numbers, and negative amounts on credit notes. Mixed-direction text such as an item code inside an Arabic name sometimes needs a <bdi> or dir="ltr" span to display correctly.
Want our bilingual print format starter?
We will share the bilingual Jinja print format and CSS from this post, with fields for Arabic names and a QR block.
Send me the starter → WhatsApp us: +91 8089051848
Or email info@nexeves.com
Step 4: Amounts in words, in both languages
Many GCC customers want the total in words in English and Arabic. ERPNext provides frappe.utils.money_in_words for English. For Arabic, use a small server-side helper or an app that converts numbers to Arabic words, exposed to Jinja through a whitelisted method or hooks. Test with fils and halalas, since sub-unit wording is where most helpers break.
Step 5: QR codes
- Saudi Arabia, Phase 1 style QR: a TLV-encoded, Base64 string containing seller name, VAT number, timestamp, invoice total and VAT total, rendered as a QR image.
- Saudi Arabia, Phase 2: the QR also carries the invoice hash and cryptographic signature elements, so it must be produced by the ZATCA integration, not by the print format. ERPNext needs a ZATCA Phase 2 add-on app for this; the print format simply displays the QR the app stores on the invoice.
- UAE: a QR is not required by VAT rules today, but some companies add one with a link to the invoice or payment page. Follow the UAE e-invoicing specifications as they are introduced.
Step 6: Letter head, footer and multiple companies
Use a Letter Head per company with the bilingual name, logo, address and registration numbers, and set it as default for that company. In a group with UAE, Saudi and Bahrain companies, create one print format per country if the layouts differ, and set the default print format per company through print settings or a small script. See multi-company setup.
Testing checklist
- Standard invoice, simplified (B2C) invoice and credit note print correctly.
- Arabic text shapes properly in the PDF, not as separate letters.
- Long item lists break across pages with the header row repeated.
- Amounts, VAT and totals match the invoice to the last decimal, in AED, SAR, BHD or KWD.
- Customer VAT number and address appear for B2B invoices.
- QR code scans and, in Saudi Arabia, matches what the ZATCA app generated.
- Email PDF and printed copy look the same.
Common problems
| Problem | Cause | Fix |
|---|---|---|
| Arabic letters disconnected | Font without Arabic shaping in PDF | Install an Arabic font on the server and reference it in CSS |
| Text reversed or misaligned | Missing dir="rtl" or mixed-direction text | Wrap Arabic blocks in RTL; isolate codes with bdi |
| Arabic name blank on old invoices | Field added after invoices were created | Backfill if needed; fetch on new invoices |
| Totals with wrong decimals | Raw values printed | Use get_formatted with the document |
| QR rejected by Saudi scanners | QR built in print format instead of by the ZATCA app | Use the QR produced by the integration |
Frequently asked questions
Does a tax invoice in Saudi Arabia have to be in Arabic?
According to ZATCA guidance, tax invoices must be issued in Arabic, and other languages may be added as a translation. Confirm details with your tax adviser.
Must UAE tax invoices be in Arabic?
The UAE VAT invoice particulars do not require Arabic, but the FTA can request certified Arabic translations of records, and consumer protection rules expect Arabic on invoices to consumers. Bilingual invoices are the safe default for B2C.
How do I create an Arabic-English invoice in ERPNext?
Add Arabic name fields to Company, Customer and Item, then build a Jinja print format with paired English and Arabic blocks, RTL direction on Arabic text and an Arabic-capable font for PDF.
Why does Arabic text look broken in my ERPNext PDF?
Usually because the server font lacks Arabic shaping. Install a font such as Noto Naskh Arabic or Amiri and reference it in the print format CSS.
Can ERPNext generate the ZATCA QR code?
For Phase 2, the QR code must come from a ZATCA-compliant integration, so ERPNext uses a ZATCA add-on app that generates the XML, hash, signature and QR, and the print format displays it.
Can I show the total in Arabic words?
Yes, with a small helper that converts amounts to Arabic words, made available to the print format. English words are available with money_in_words.
Invoices your GCC customers and auditors accept
Nexeves Technologies builds bilingual print formats, VAT setups and ZATCA e-invoicing integrations on ERPNext for companies in the UAE, Saudi Arabia, Bahrain, Qatar and Kuwait.
Book a free demo → WhatsApp us: +91 8089051848
Or email info@nexeves.com
Nexeves Technologies serves India & the GCC: UAE (Dubai, Abu Dhabi), Saudi Arabia (Riyadh, Jeddah), Qatar (Doha), Kuwait and Bahrain.
No comments yet. Login to start a new discussion Start a new discussion