BR-KSA-10: الفواتير الضريبية تحتاج شارع المشتري ومدينته ورمز دولته
في الفواتير الضريبية (التي تبدأ فيها cbc:InvoiceTypeCode/@name بـ x27;01') يجب أن يحتوي cac:AccountingCustomerParty/cac:Party/cac:PostalAddress على cbc:StreetName و cbc:CityName و cac:Country/cbc:IdentificationCode غير فارغة. الفحص الفعلي لا ينظر إلى قيمة الدولة، فينطبق على المشترين السعوديين أيضاً خلافاً للنص الرسمي؛ ولا يشترط cbc:PostalZone ولا cbc:CitySubdivisionName اللذين يضيفهما نص الاختبار المدرج.
كيف تحلها
عبّئ عنوان المشتري على الأقل بـ <cbc:StreetName>…</cbc:StreetName><cbc:CityName>…</cbc:CityName><cac:Country><cbc:IdentificationCode>…</cbc:IdentificationCode></cac:Country>.
نص الهيئة الرسمي
[BR-KSA-10]-Where the Buyer Country Code (BT-55) is other than 'SA' Buyer address must contain a street (BT-50), city (BT-52), country code (BT-55). This rule does not apply on the simplified tax invoices and associated credit notes and debit notes (KSA-2, position 1 and 2 = 02).
المصدر: ZATCA SDK 3.4.8 · ZATCA KSA rules
متى تفشل (الشرط اللي ينفّذه SDK الهيئة)
not (string-length(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) > 0 and string-length(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName) > 0 and string-length(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName) > 0 and exists(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName) and exists(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName) and exists(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode))
قواعد قريبة
- BR-KSA-06 · رمز معاملة الفاتورة (السمة name) يجب أن يتبع الصيغة NNPNESB
- BR-KSA-07 · فواتير التصدير لا يجوز أن تكون فوترة ذاتية
- BR-KSA-15 · الفاتورة الضريبية (388) تحتاج تاريخ التوريد
- BR-KSA-25 · الفاتورة المبسطة بإعفاء EDU/HEA تتطلب اسم المشتري
- BR-KSA-31 · الفاتورة المبسطة لا تكون فوترة ذاتية (الخانة 7 = 0)
- BR-KSA-42 · الفاتورة الضريبية وإشعاراتها تتطلب اسم المشتري (BT-44)
افحص فاتورتك على قواعد الهيئة
الصق الـ XML وتشوف كل الأخطاء والتحذيرات، والفحص يصير في متصفحك وما ترسل الفاتورة لأي مكان.
افحص فاتورة أو جرّب ماثل