BR-KSA-08: معرّف البائع بنوع صالح (CRN, MOM, MLS, SAG, OTH, 700)

الشرح من فريق ماثل، مبني على نص قواعد الهيئة والشرط اللي ينفّذه SDK 3.4.8 · آخر تحديث

تحذير: الفاتورة تنقبل مع تحذيركل الفواتيرالحقول: BT-29, BT-29-1

يتحقق من وجود cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID (BT-29) مع @schemeID (BT-29-1) بإحدى القيم CRN أو MOM أو MLS أو SAG أو OTH أو 700. الفحص الفعلي يتحقق فقط من وجود المعرّف ونوعه، ولا يفحص شرطي 'أحرف وأرقام فقط' و'مرة واحدة فقط' الواردين في النص الرسمي.

كيف تحلها

أضف معرّف البائع مع نوعه، مثل <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)))

قواعد قريبة

افحص فاتورتك على قواعد الهيئة

الصق الـ XML وتشوف كل الأخطاء والتحذيرات، والفحص يصير في متصفحك وما ترسل الفاتورة لأي مكان.

افحص فاتورة أو جرّب ماثل