Closed asim009 closed 1 year ago
@asim009 I tried this. Passes for me
const line_item: ZATCASimplifiedInvoiceLineItem = {
id: "1",
name: "TEST NAME",
quantity: 1,
tax_exclusive_price: 20000.5,
VAT_percent: 0.15,
other_taxes: [
],
discounts: [
]
};
Also, Yes don't pass the lib anything with more than 2 decimal places (0.00). It will be fixed to 2 anyway.
@wes4m @HaimenToshi @adriantoro26 There is an error from zatca when I tried to execute below calculation "message": "The line VAT amount (KSA-11) must be Invoice line net amount (BT-131) x (Line VAT rate (BT-152)/100).", 3000.07=20000.50*15/100;> 3000.075 (calculator value) I assume Zatca calculation is rounding up the value to 3000.075 to 3000.08. I tried to round up the thing with in this package but entire calculation is getting messed up. Suggest me what we can do
Test case Json for line