I am creating invoice via API, I am adding 20% tax while creating it, Amount passing in the cost is including tax, but its applying the tax again. If I deduct the tax value from the original amount and pass, it applying vat to that amount, so total amount is showing incorrect.
Is there any option to pass the tax amount and cost from the API. so its shows correct value in the PDF.
I am creating invoice via API, adding tax in the invoice, in line item i am passing the cost.
for example my amount is 100 inclusive VAT. when i send it, its again calculating vat on 100 so total is incorrect. If i deduct the amount of tax like 100 -20= 80, if i pass 80 its calculating VAT on it, so than also total is incorrect.
just want to check if there is any parameter where in the json where i can pass the tax amount so it doesn’t calculate the tax again, like i pass the 80 in the cost and 20 in the tax. so its shows 100 correct value in the PDF.
One option may be to add a custom invoice surcharge called ‘Tax’ and manually set the amount. One drawback to this approach is that you won’t be able to use the tax reports in the app.