BR-KSA-08: معرّف البائع بنوع صالح (CRN, MOM, MLS, SAG, OTH, 700)
يتحقق من وجود cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (BT-29) مع @schemeID (BT-29-1) بإحدى القيم CRN أو MOM أو MLS أو SAG أو OTH أو 700. الفحص الفعلي يتحقق فقط من وجود المعرّف ونوعه، ولا يفحص شرطي x27;أحرف وأرقام فقطx27; وx27;مرة واحدة فقطx27; الواردين في النص الرسمي.
كيف تحلها
أضف معرّف البائع مع نوعه، مثل <cac:PartyIdentification><cbc:ID schemeID="CRN">1010010000</cbc:ID></cac:PartyIdentification>، بأحرف وأرقام فقط، واختر أول نوع منطبق حسب الترتيب CRN, MOM, MLS, SAG, OTH, 700 كما في النص الرسمي.
نص الهيئة الرسمي
[BR-KSA-08]-The seller identification (BT-29) must exist only once with one of the scheme ID (BT-29-1) (CRN, MOM, MLS, SAG, OTH, 700) and must contain only alphanumeric characters. Commercial Registration number with "CRN" as schemeID. MOMRAH license with "MOM" as schemeID. MHRSD license with "MLS" as schemeID. 700 Number with "700" as schemeID. MISA license with "SAG" as schemeID. Other OD with "OTH" as schemeID. In case of multiple commercial registrations, the seller should fill the commercial registration of the branch in respect of which the Tax Invoice is being issued. In case multiple IDs exist then one of the above must be entered following the sequence specified above.
المصدر: ZATCA SDK 3.4.8 · ZATCA KSA rules
متى تفشل (الشرط اللي ينفّذه SDK الهيئة)
not( exists(cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) and string-length(cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID/normalize-space(@schemeID)) > 2 and contains('CRN MOM MLS SAG OTH 700', normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID/@schemeID)))
قواعد قريبة
- BR-KSA-F-08 · رقم السجل التجاري CRN يجب أن يكون 10 أرقام
- BR-KSA-F-09 · الرقم الموحد 700 يجب أن يكون 10 أرقام تبدأ بـ 7
- BR-KSA-F-12 · رمز schemeID لمعرّف البائع أو المشتري بدون مسافات زائدة
- BR-KSA-F-13 · معرّف البائع أو المشتري يجب ألا يكون تسلسل أرقام وهمياً
افحص فاتورتك على قواعد الهيئة
الصق الـ XML وتشوف كل الأخطاء والتحذيرات، والفحص يصير في متصفحك وما ترسل الفاتورة لأي مكان.
افحص فاتورة أو جرّب ماثل