NetSuite integration: tax basis incorrect, net amount incorrect, and unit price incorrect
Issue description: The Tax Basis is incorrect when an invoice is created in NetSuite.
The amount calculated and shown in Chargebee is different from the one calculated in NetSuite.
For example:
The tax basis is 962.88, calculated in Chargebee as follows:
Unit Price 239.121 (Excl. Taxes)x Quantity 5.269
-
Discount 320.960 (Excl. Taxes)
962.880 ( Excl . Taxes)But when this is synced to Netsuite, the tax basis has as another value which is this one:
Unit Price 239.121 (Excl. Taxes)x Quantity 5.269
-
Tax 205.412
1,489.243( Inc. Taxes) RCA: This is a bug and for SuiteTax enabled NetSuite account where we are trying to override tax details from Chargebee and having tax inclusive currencies. We were sending incorrect values for TaxBasis and UnitAmount.
This bug has been fixed and the tax is calculated properly now. Reference ticket for bug fix details: JIRA Ticket