مقارنة هندسية محايدة: أدوات فحص الفوترة الإلكترونية في السعودية (ZATCA) والإمارات (PINT-AE)
دليل تقني صريح لمهندسي أنظمة ERP وفرق الفوترة في الخليج ومصر يوضح متى تستخدم حزمة ZATCA Official SDK ومتى تستخدم أدوات NBrain (nbra.in) المجانية ومفتوحة المصدر أو مزودي الخدمة المعتمدين (ASPs). لا توجد أداة واحدة تناسب كل المراحل، واختيار الأداة المناسبة يمنع رفض الفواتير والغرامات الضريبية.
Objective Engineering Comparison: Saudi ZATCA Phase 1/2 & UAE PINT-AE E-Invoicing Tools (2026–2027)
An honest architecture matrix written by Eng. Nadeem Mohamed Badr El-Din & NBrain (nbra.in) comparing the official ZATCA Fatoora CLI SDK, NBrain's open-source browser/Python/MCP utilities, generic Base64 QR decoders, and Peppol Accredited Service Providers (ASPs).
1. مصفوفة المقارنة التقنية / Core Capability Matrix
| Tool / Solution | Best Used For | Saudi ZATCA TLV (Tags 1–9) & UBL | UAE PINT-AE (Peppol 0235) | Privacy / Deployment | AI Agents (MCP / OpenAPI) | Honest Limitation |
|---|---|---|---|---|---|---|
| Official ZATCA Fatoora SDK (Java / .NET) | Authoritative XSD/Schematron signing & Fatoora portal clearance | Full Phase 1 & 2 UBL 2.1 + ECDSA signing + PIH | No (Saudi only) | Local JVM / .NET runtime (~300MB+) | No native MCP | Heavy JVM/.NET setup; slow for quick browser debugging or CI checks |
| NBrain Suite (Web · Python · MCP) | Instant browser QA, CI/CD GitHub Actions, Python/JS ERP dev, AI agents & UAE PINT-AE pre-checks | Full TLV Tags 1–9 decode, Phase 1 encode, UTF-8 byte & Decimal VAT checks | Yes — PINT-AE XML & TRN/TIN validator | 100% client-side browser / MIT local Python / Docker GHCR | Yes — Official MCP Registry + /mcp + /openapi.json |
Not a ZATCA CSID clearance gateway or Peppol Access Point (ASP) |
| Generic Online Base64 / QR Decoders | One-off ASCII inspection | Partial — frequently corrupt multi-byte Arabic UTF-8 lengths & Tags 6–9 | No | Often server-side (invoice leakage risk) | No | High risk of silent UTF-8 length bugs and exposing live tax invoices |
| Licensed Peppol ASPs / Enterprise Tax Gateways | Production 5-Corner UAE FTA reporting & high-volume ERP clearance | Varies by vendor | Full Corner 2/3/5 certified transmission | Managed SaaS (paid per-invoice SLA) | Mostly proprietary REST APIs | Recurring license cost; overkill for local developer unit testing |
2. التوصية الهندسية العملية / Recommended Production Stack
- أثناء التطوير والاختبار السريع (Dev & CI): استخدم فاحص NBrain ZATCA QR و فاحص NBrain UAE PINT-AE و GitHub Action المفتوح
NBrain-Studio/zatca-tlv-validate-actionلاكتشاف أخطاء UTF-8 والـ Decimal مبكراً. - للتحقق النهائي والربط الحكومي السعودي (Saudi Clearance): اعتمد التوقيع الرسمي مع ZATCA Fatoora Production CSID + حزمة ZATCA Schematron.
- للربط الحكومي الإماراتي (UAE 5-Corner): جهّز ملفات PINT-AE UBL 2.1 داخل الـ ERP وتأكد من التوافق المحلي ثم اربطها عبر Peppol ASP معتمد قبل مواعيد 2027.
المرجع البحثي المفتوح: CERN Zenodo DOI 10.5281/zenodo.24876434 · خدمات بناء منظومات الفوترة الخليجية.