Announcing the launch of the Saudi Zatca-2 E-Invoicing app on FrappeCloud

ZATCA started stricly validating customer numbers. Make sure you are entering it properly.

And thanks a lot for your reply
Please share the reference to follow the update

thx, I do not find the topic that said the ZATCA started to validate Customer-ID from yesterday.
I determine the customer ID type and set the 10 numbers as I see in the XML file, but some sales invoices still have a warning

Warnings:

BR-S-08: [BR-S-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is ’ Standard rated’ the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are ‘Standard Rate’.

BR-CO-10: Sum of Invoice line net amount (BT-106)

BR-CO-13: Invoice total amount without VAT (BT-109) = S Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).

Please update latest.

ZATCA ERPNext App Update

Hi Team,

We have updated the ZATCA app in line with the latest regulatory changes.

:white_check_mark: What Changed

  • Updated PartyIdentification logic in createxml.py.
  • Previously: PartyIdentification was only added for non-B2C customers.
  • Now: PartyIdentification is added if:
    • The customer is non-B2C, OR
    • The customer is B2C with a non-empty custom_buyer_id.

:memo: Why

  • In certain sectors (e.g., Education and Healthcare), B2C customers are required to provide an ID.
  • ZATCA validation raised warnings for empty PartyIdentification tags in B2C invoices.
  • This fix ensures compliance by only adding the tag when valid data is available.

:loudspeaker: Action Required

Please update your ERPNext server as soon as possible to stay current and ensure continued ZATCA compliance.

#ZATCA ERPNext #ERPGulf #Compliance

1 Like

These issues are resolved in the latest version, please update your app.
Hopefully these issues will be resolved.

1 Like

After successfully linking OTP for production onboarding, we are unable to (a) send/clear invoices and (b) generate Production CSIDs. Both actions return a “Missing-ComplianceSteps” error that lists several compliance steps as incomplete.

YOu didnt do all compliance tests. Pls watch our instruction video here . https://youtu.be/V3m8Px_lbSQ
or the documentation here
CSR Creation Failed

for B2B customer have all Zatca information ,after update i get

" Warnings:

BR-KSA-F-07: [BR-KSA-F-07] - The value provided in Other Buyer ID (BT-46) for scheme ID ‘TIN’ appears to be incorrect. Please recheck the value to avoid non-compliance."

please confirm that TIN must be 15 number or 10
before update use 15 digit number for TIN

and if TIN must be 10 , what filed must be 15 digit

Must be 10 . VAT is 15

Hi when i try to submit final csid i am getting this error

Error in production: {“requestID”:-2,“tokenType”:null,“dispositionMessage”:“NOT_COMPLIANT”,“binarySecurityToken”:null,“errors”:[“unable to submit and sign the csr in zatca side, caused : Denied by Policy Module 0x80094800, The request was for a certificate template that is not supported by the Active Directory Certificate Services policy: PREZATCA-Code-Signing.\r\n”]}
Error in production CSID formation: Error in production: {“requestID”:-2,“tokenType”:null,“dispositionMessage”:“NOT_COMPLIANT”,“binarySecurityToken”:null,“errors”:[“unable to submit and sign the csr in zatca side, caused : Denied by Policy Module 0x80094800, The request was for a certificate template that is not supported by the Active Directory Certificate Services policy: PREZATCA-Code-Signing.\r\n”]}

anyone faced this issue ? i tried on two different erp instances but same error.

1- Check your CSR ( remove Arabic , test without non alpha characters
2- Make sure you are not using Production certificate in Simulation , or Simulation certificate in Production

Hi thank you for reply,
i am not using any alpha characters, when i select simulation its working fine, as soon as i select producation and re-enter all data it give me this error. i had tested on two diffrent erp with fresh installed but same issue.

When you are changing to prodcution, you need to create CSR again

also there is issue, when i enter OTP from company - zatca setting its give me wrong otp but when i use wizred its accepting that otp. but in wizdred when i try to genrate final csid its fail even i had select all 6 type and test them. then i have to go to setting and from there i verify invoice , credit and debit note. but at end its fail.

@Husna Try to look at this issue.

yes i did that

any idea ?