BR-KSA-10: الفواتير الضريبية تحتاج شارع المشتري ومدينته ورمز دولته

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

تحذير: الفاتورة تنقبل مع تحذيرالفاتورة الضريبية (B2B)الحقول: BT-55, BT-50, BT-52, KSA-2

في الفواتير الضريبية (التي تبدأ فيها cbc:InvoiceTypeCode/@name بـ '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))

قواعد قريبة

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

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

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