# Bilingual invoices with structured XML and QR codes, issued from your own computer

> Issue tax invoices and simplified invoices in English and Arabic. Each document exports as a PDF and as UBL 2.1 XML, carries a QR code where you need one, and stays in a local audit archive.

- Web page: https://raqambooks.com/features/invoicing/
- Last updated: 2026-12-04
- Other languages: [ar](https://raqambooks.com/ar/features/invoicing.md), [ur](https://raqambooks.com/ur/features/invoicing.md)

## Bilingual English and Arabic PDF invoices

**Summary:** RaqamBooks issues tax invoices as PDF in English, Arabic or both languages on one page, with correct right-to-left layout. Each invoice shows seller and buyer details, VAT numbers, line items, VAT per rate and totals at your currency's exact decimals. Templates are managed in Settings → Templates, and every file is created on your own computer.

- **Seller and buyer blocks**: Your legal name, address and VAT number come from Settings → Company. The customer's name, address and VAT number come from the customer record.
- **Lines and VAT per rate**: Quantity, unit price, discount and VAT rate per line, with VAT totalled separately for each rate at the bottom of the invoice.
- **English, Arabic or both**: Choose the language layout in the template. Arabic text is right-to-left aligned, and labels can show in both languages side by side.
- **Exact amounts**: Totals follow Settings → Currency & Decimals: 2 decimals for SAR, AED and QAR, 3 for KWD, BHD and OMR. See [accounting](https://raqambooks.com/features/accounting/).

## Tax invoice or simplified invoice

**Summary:** A tax invoice is addressed to a VAT-registered business or government buyer and carries the buyer's name, address and VAT number. A simplified invoice is for walk-in consumers and needs far fewer buyer details. RaqamBooks can issue both. Which one a transaction needs, and the mandatory fields, depend on your country's tax rules.

**Tax invoice compared with simplified invoice**

| Aspect | Tax invoice | Simplified invoice |
| --- | --- | --- |
| Typical customer | VAT-registered business or government body (B2B, B2G) | Consumer buying at the counter (B2C) |
| Buyer details | Name, address and VAT number of the buyer | Usually optional or minimal |
| QR code | Can be added to the invoice | Printed; required on Saudi simplified invoices |
| Saudi Phase 2 path (third-party step) | Cleared by ZATCA in real time before it reaches the buyer | Reported to ZATCA within 24 hours of issuance |

_Terminology and mandatory fields differ by country. Confirm them with your tax authority; see the [ZATCA guide](https://raqambooks.com/compliance/zatca-saudi-arabia/) and the [UAE e-invoicing guide](https://raqambooks.com/compliance/uae-einvoicing/)._

## Structured UBL 2.1 XML next to the PDF

**Summary:** Every invoice can be exported as structured UBL 2.1 XML alongside the PDF. The XML carries the same seller, buyer, line, tax and total data in machine-readable form, so a service provider, a tax portal or your customer's accounting system can read it. Sending the file onward is a separate step done with a third party.

UBL (Universal Business Language) 2.1 is the OASIS XML standard that many national e-invoicing formats are built on. The file holds the parties, invoice number and issue date, currency, one line per item with quantity, price and tax category, and the totals. Each national programme defines its own profile on top of UBL, so ask your service provider or portal what they accept before you submit.

## QR codes and ZATCA TLV Base64

**Summary:** RaqamBooks generates ZATCA-format QR codes as TLV Base64 data: seller name, VAT registration number, timestamp, invoice total with VAT and VAT amount. The code prints on the invoice or receipt. Generating the QR is built in. Submitting invoices to ZATCA or to a UAE Accredited Service Provider is a separate third-party step.

TLV means tag, length, value: each field is written as a tag number, a byte length and the value, and the whole string is Base64-encoded into the QR. Phase 1 uses tags 1 to 5. Saudi Phase 2 adds tags 6 to 9 (invoice hash, digital signature, public key and certificate signature), which depend on the cryptographic stamp issued when you onboard with ZATCA. Text fields are UTF-8, so Arabic seller names are normal.

**Built-in capabilities and third-party steps**

| Step | In RaqamBooks? | Who does it |
| --- | --- | --- |
| Create the PDF and UBL 2.1 XML | Built in | RaqamBooks, on your computer |
| Generate the TLV Base64 QR code | Built in | RaqamBooks, on your computer |
| Onboarding in the ZATCA Fatoora portal | No | You, with ZATCA |
| Phase 2 clearance or reporting to ZATCA | No | ZATCA systems, via your own or a provider's integration |
| UAE: transmission through an Accredited Service Provider | No | Your chosen ASP |
| Oman: provider connection (timeline reported, confirm with the OTA) | No | Your chosen provider |

> **A printed QR code is not Phase 2 compliance** If your Saudi business falls in a Phase 2 wave, invoices must also be cleared or reported through ZATCA's systems. Check your wave on the ZATCA portal and read the [ZATCA guide](https://raqambooks.com/compliance/zatca-saudi-arabia/). For the UAE, see the [UAE e-invoicing guide](https://raqambooks.com/compliance/uae-einvoicing/).

## Credit and debit notes linked to the original invoice

**Summary:** A credit note reduces what a customer owes and a debit note increases it. In RaqamBooks both are created from the original invoice, so its number, date, customer, VAT number and tax lines carry over and the link is stored. That reference lets an auditor, a tax portal or the customer match each correction to its invoice.

- **Typical credit-note cases**: Goods returned, a price corrected after invoicing, a discount agreed later, or a sale cancelled. At the counter, returns are recorded against the original sale in the [POS](https://raqambooks.com/features/pos/).
- **Typical debit-note cases**: A quantity or price undercharged on the invoice, or an extra charge such as freight agreed after delivery.

**What carries over from the original invoice**

| Field | What happens | Why it matters |
| --- | --- | --- |
| Original invoice number and date | Stored as the reference on the note | Lets a reader match the note to the invoice; UBL 2.1 expresses this as a billing reference |
| Customer and VAT number | Copied unchanged | The correction goes to the same party |
| Lines, quantities and tax rates | Pre-filled; keep or edit only the lines being corrected | VAT is reversed or added at the rate used on the original |
| Currency and decimals | Same as the original | Amounts stay exact to 2 or 3 decimals |
| Reason for the note | Typed by the user when issuing | Explains the correction to auditors and the customer |

## Audit archive of every issued document

**Summary:** Every issued invoice, credit note and debit note is kept in the local archive on your computer, and its PDF and XML can be exported again on demand. The right way to fix an issued invoice is a credit or debit note, which leaves the original on record. Backups go to a disk you control.

- Find any issued document again by its number, customer or date, and re-export the PDF or XML.
- Back up the data folder regularly with the [local backup and restore guide](https://raqambooks.com/docs/local-backup-restore/).
- Ask your tax authority how long invoices must be kept; the retention period is your responsibility and differs by country.

## Frequently asked questions

**Can I issue invoices in Arabic and English on one page?**

Yes. Pick English, Arabic or both in the invoice template. Arabic text is laid out right to left, and labels can appear in both languages. The same invoice also exports as UBL 2.1 XML for systems that need structured data.

**Does RaqamBooks send invoices to ZATCA or the UAE system automatically?**

No. RaqamBooks creates the PDF, the UBL 2.1 XML and the QR code. Clearance or reporting in Saudi Arabia, and transmission through an Accredited Service Provider in the UAE, are third-party steps you set up with ZATCA or your provider.

**Can I generate the ZATCA QR code without internet?**

Yes. The TLV Base64 QR code is generated locally from the invoice data, so printing it never waits on a connection. Internet is only needed later, when you submit invoices to a tax portal or provider where the rules require it.

**How do I correct an invoice that has already been issued?**

Create a credit note from the original invoice to reverse the wrong amount, then issue a new invoice if needed. For an undercharge, issue a debit note. Both stay linked to the original, so the audit trail remains complete.

**Does the XML work with every country's e-invoicing system?**

RaqamBooks writes standard UBL 2.1 XML. Each national programme defines its own profile on top of that, and timelines differ by country. Ask your service provider what it accepts, and check the status on the [country pages](https://raqambooks.com/gcc/).

## Related pages

- [Point of Sale (POS)](https://raqambooks.com/features/pos/): Offline-ready POS for Windows and macOS: barcode scanning, ESC/POS thermal receipts, cash drawer, bilingual EN/AR receipts and shift closing.
- [Accounting & VAT Reports](https://raqambooks.com/features/accounting/): Chart of accounts, trial balance, P&L, balance sheet and VAT return reports with exact 2-decimal (SAR, AED, QAR) and 3-decimal (KWD, BHD, OMR) amounts.
- [ZATCA e-invoicing](https://raqambooks.com/compliance/zatca-saudi-arabia/): Guide to ZATCA FATOORA e-invoicing in Saudi Arabia: Phase 1 vs 2, Wave 25, clearance vs reporting, UBL 2.1 XML, TLV QR tags and a readiness checklist.
- [UAE e-invoicing](https://raqambooks.com/compliance/uae-einvoicing/): UAE e-invoicing under Ministerial Decisions 243 and 244 of 2025: start dates by revenue group, the five-corner model, PINT AE, providers and sources.
- [Bilingual invoice maker](https://raqambooks.com/tools/bilingual-invoice-maker/): Free printable English-Arabic invoice and quotation template for the GCC: line items, VAT per line and exact 2- or 3-decimal totals. Runs in your browser.

## Download RaqamBooks and run your business offline

Install it on your own computer, keep your data local and avoid per-user monthly cloud fees. Early version for Windows 10/11 and macOS 13 or later (Apple chip and Intel chip).

[All downloads, checksums and install guide](https://raqambooks.com/download/)
