Skip to content
العربية
Invoices and support

Invoice

A Saudi tax invoice with Arabic and English labels on one page. Amounts are computed in halalas, with VAT rounded on each line, and it prints black on white in every theme. The labels of the page language come from the provider strings; otherLanguageStrings gives the labels of the second language.

import { Invoice, invoiceTotals } from "@percentsa/ui";

Examples

Tax invoice
فاتورة ضريبية

Invoice numberرقم الفاتورة
INV-2026-0042
Issue dateتاريخ الإصدار
18 February 2026 · 1 Ramadan 1447 AH

Sellerالبائع

Percent Software Studio

VAT numberالرقم الضريبي
310123456700003
CR numberرقم السجل التجاري
1010123456
Addressالعنوان
Olaya, Riyadh 12211

Buyerالمشتري

Najd Trading Co.

VAT numberالرقم الضريبي
300987654300003
Addressالعنوان
Al Malqa, Riyadh 13521
Description
الوصف
Quantity
الكمية
Unit price
سعر الوحدة
VAT rate
نسبة الضريبة
VAT amount
مبلغ الضريبة
Total incl. VAT
الإجمالي شامل الضريبة
Website design118,000.0015%2,700.0020,700.00
Development, hours40350.0015%2,100.0016,100.00
Hosting, 12 months1299.9915%179.981,379.86
Total excl. VAT
الإجمالي غير شامل الضريبة
33,199.88
Total VAT
إجمالي ضريبة القيمة المضافة
4,979.98
Total incl. VAT
الإجمالي شامل ضريبة القيمة المضافة
38,179.86

Notesملاحظات

Payment within 30 days to IBAN SA03 8000 0000 6080 1016 7519.
Code
export function InvoiceExample() {
  const t = useT();
  return (
    <Invoice
      className="w-full max-w-4xl"
      type="standard"
      number="INV-2026-0042"
      issueDate="2026-02-18"
      showHijri
      seller={{ name: t("Percent Software Studio", "استوديو برسنت للبرمجيات"), vatNumber: SELLER_VAT, crNumber: "1010123456", address: t("Olaya, Riyadh 12211", "العليا، الرياض 12211") }}
      buyer={{ name: t("Najd Trading Co.", "شركة نجد التجارية"), vatNumber: "300987654300003", address: t("Al Malqa, Riyadh 13521", "الملقا، الرياض 13521") }}
      lines={[
        { description: t("Website design", "تصميم الموقع"), quantity: 1, unitPrice: 18_000 },
        { description: t("Development, hours", "التطوير، بالساعة"), quantity: 40, unitPrice: 350 },
        { description: t("Hosting, 12 months", "الاستضافة، 12 شهرًا"), quantity: 12, unitPrice: 99.99 },
      ]}
      notes={t("Payment within 30 days to IBAN SA03 8000 0000 6080 1016 7519.", "الدفع خلال 30 يومًا إلى الآيبان SA03 8000 0000 6080 1016 7519.")}
    />
  );
}

Simplified tax invoice
فاتورة ضريبية مبسطة

Invoice numberرقم الفاتورة
S-10931
Issue dateتاريخ الإصدار
18 February 2026

Sellerالبائع

Percent Coffee

VAT numberالرقم الضريبي
310123456700003
Description
الوصف
Quantity
الكمية
Unit price
سعر الوحدة
VAT rate
نسبة الضريبة
VAT amount
مبلغ الضريبة
Total incl. VAT
الإجمالي شامل الضريبة
Flat white218.2615%5.4842.00
Date cake121.7415%3.2625.00
Bottled water12.000%0.002.00
Total excl. VAT
الإجمالي غير شامل الضريبة
60.26
Total VAT
إجمالي ضريبة القيمة المضافة
8.74
Total incl. VAT
الإجمالي شامل ضريبة القيمة المضافة
69.00
Code
export function SimplifiedInvoiceExample() {
  const t = useT();
  return (
    <Invoice
      className="w-full max-w-4xl"
      type="simplified"
      number="S-10931"
      issueDate="2026-02-18"
      timestamp="2026-02-18T09:30:00Z"
      qr
      seller={{ name: t("Percent Coffee", "قهوة برسنت"), vatNumber: SELLER_VAT }}
      lines={[
        { description: t("Flat white", "فلات وايت"), quantity: 2, unitPrice: 18.26 },
        { description: t("Date cake", "كيكة التمر"), quantity: 1, unitPrice: 21.74 },
        { description: t("Bottled water", "مياه معبأة"), quantity: 1, unitPrice: 2, vatRate: 0 },
      ]}
    />
  );
}