Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding discount Invoice Compliance failing #48

Open
vinod-osv opened this issue Nov 12, 2023 · 1 comment
Open

Adding discount Invoice Compliance failing #48

vinod-osv opened this issue Nov 12, 2023 · 1 comment

Comments

@vinod-osv
Copy link

  1. If i am adding discount getting error

const line_item: ZATCASimplifiedInvoiceLineItem = {
id: "1",
name: "TEST NAME",
quantity: 5,
tax_exclusive_price: 10,
VAT_percent: 0.02,
discounts: [
{amount: 10, reason: "A discount"}
]
};

{"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-EN16931-11","category":"KSA","message":"Invoice line net amount (BT-131) must equal (Invoiced quantity (BT-129) * (Item net price (BT-146) / item price base quantity (BT-149))) + Sum of invoice line charge amount (BT-141) - Sum of invoice line allowance amount (BT-136)","status":"WARNING"}],"errorMessages":[],"status":"WARNING"},"reportingStatus":"REPORTED","clearanceStatus":null,"qrSellertStatus":null,"qrBuyertStatus":null}

  1. QR code generation formatted_datetime getting error for adding below format
    const formatted_datetime = moment(datetime).format("YYYY-MM-DDTHH:mm:ss")+"Z";
    const formatted_datetime = moment(datetime).format("YYYY-MM-DDTHH:mm:ss"); working fine
@vinod-osv
Copy link
Author

Any update on the post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant