Can I integrate Two Companies in simulation with same Tax Id ?
on simulation, YES
same thing for production or different ?
For production, you invoice has to be posted from respective company VAT number. Otherwise there will be an accounting mismatch. If both company using same VAT, there may be a group VAT ID. check with your zatca account manager
We have added a field in company doctype to accommodate CR Number. Please make sure you fill the field with company CR , otherwise will get following warning from Zatca .
{“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD_ZATCA_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-08”,“category”:“KSA”,“message”:“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.”,“status”:“WARNING”}],“errorMessages”:,“status”:“WARNING”}
Hello,
While trying to generate the CSR and after entering the OTP we got the following message:
Your help is greatly appreciated.
In the latest version, we are not using “zatca erpgulf” setting page . Instead we use zatca setting page inside company doctype. This we have done for easyness to setup multi company.
so in the CSR config page, enter the values like following
csr.common.name=TST-886431145-399999999900003
csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e874f
csr.organization.identifier=399999999900003
csr.organization.unit.name=399999999900003
csr.organization.name=Test Company LTD
csr.country.name=SA
csr.invoice.type=1100
csr.location.address=RIYADH
csr.industry.business.category=Testing zatca
I am using the ZATCA settings in the company doctype.
What I’ve done was to acquire the OTP and input it in the designated field and then click on the “Create CSR” button.
Is there something I am missing…? Did I do something wrong?
Just to clarify… I was originally following along with the video mentioned on your Git page but had already been informed that all settings need to be set through the company doctype and started doing exactly that when the error happened.
My understanding is that I only needed to provide the “OTP” and “pih” and that would be enough to generate the CSR…
for creating CSR, you dont need OTP. If is for compliance-CSID creation.
For CSR creation , you just need CSR-config
And for the CSR config I just use the code you’ve provided earlier. Correct?
it is sample for sanbox testing. For production and simulation, you need to put your company parameters.
put something in address line 1 and 2
thank you for valuable response.
i have added address line 1 and line 2 but it showing “Invoice tax categories MUST be coded using UNCL5305 code list” error message
Are you using item-tax template? So inside that there is tax category and reason. You need to give values there .
After inputting the CSR configuration. I am trying to check for compliance and keep getting this message"
Is there an updated tutorial that reflects any changes done to the app and how it should be used? It would be greatly appreciated if we can have a documentation of some sort of the steps to follow in order to set it up properly after the updates that were made.
Thank you.
We are releasing a new tutorial video soon.
My apologies but it seems like there was an issue from my side originally in generating the Compliance CSID. I’ve managed to do so and this is the message I am getting when I generate it:
Blockquote{“requestID”:1234567890123,“dispositionMessage”:“ISSUED”,“binarySecurityToken”:“TUlJQ2N6Q0NBaHFnQXdJQkFnSUdBWkc4akFTcU1Bb0dDQ3FHU000OUJBTUNNQlV4RXpBUkJnTlZCQU1NQ21WSmJuWnZhV05wYm1jd0hoY05NalF3T1RBME1UQXhPVE16V2hjTk1qa3dPVEF6TWpFd01EQXdXakJ3TVFzd0NRWURWUVFHRXdKVFFURVlNQllHQTFVRUN3d1BNekV3TmpBeU5UVXpNVEF3TURBek1SNHdIQVlEVlFRS0RCVkZiV3RoYmlCSWIyeGthVzVuSUVOdmJYQmhibmt4SnpBbEJnTlZCQU1NSGxSVFZDMHlNRFV4TWpNd09EQTFMVE14TURZd01qVTFNekV3TURBd016QldNQkFHQnlxR1NNNDlBZ0VHQlN1QkJBQUtBMElBQkZqQndmRm10MXN3YkgvS3FaaUFldlFCLzlBNXM3emxsT0pFakxwU2dxQ0JXN1NvOFBpZ0JQcHJCaWNSTDE5bktlUGRKaHNSUTNna0ZkU0ErQWExTFoyamdmMHdnZm93REFZRFZSMFRBUUgvQkFJd0FEQ0I2UVlEVlIwUkJJSGhNSUhlcElIYk1JSFlNVHN3T1FZRFZRUUVEREl4TFZSVFZId3lMVlJUVkh3ekxXVmtNakptTVdRNExXVTJZVEl0TVRFeE9DMDVZalU0TFdRNVlUaG1NVEZsT0RjMFpqRWZNQjBHQ2dtU0pvbVQ4aXhrQVFFTUR6TXhNRFl3TWpVMU16RXdNREF3TXpFTk1Bc0dBMVVFREF3RU1URXdNREZSTUU4R0ExVUVHZ3hJT1RFNU9TQkxhVzVuSUVaaGFHRmtJR0pwYmlCQlltUjFiR0Y2YVhvZ1VtOWhaQ3dnUW1GdVpHRnlhWGxoSUVScGMzUWdNamsxTVNBdElFRnNhMmh2WW1GeUlETTBOREkwTVJZd0ZBWURWUVFQREExVVpYTjBhVzVuSUhwaGRHTmhNQW9HQ0NxR1NNNDlCQU1DQTBjQU1FUUNJRTNxY3RUeng2VWJnN0xFTEhIeDRNUE12b2JDalBObXJtWGdBdnkvZERYaUFpQk1NMnhlT1ZHLzlMYS96NkI0ckd3dThXQ2tFQVk4VGQ2TlRTOU1qQ0gzVGc9PQ==”,“secret”:“BwCMtS9u0GvRIRmaavyqiZfc9mlisZTMVphEYck+mmQ=”,“errors”:null}
Now when testing for compliance I am getting the following:
Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}
ERROR in clearance invoice, ZATCA validation: Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}
Error in Zatca invoice call: ERROR in clearance invoice, ZATCA validation: Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}