From 47fde7e491db31f4e1742a50f0e7a75daaeb2f0d Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Mon, 16 Dec 2024 08:55:06 +0100 Subject: [PATCH] Update avatax-calculate-taxes-adapter.ts --- .../avatax/calculate-taxes/avatax-calculate-taxes-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/avatax/src/modules/avatax/calculate-taxes/avatax-calculate-taxes-adapter.ts b/apps/avatax/src/modules/avatax/calculate-taxes/avatax-calculate-taxes-adapter.ts index c9f8b49b5..0fc718a45 100644 --- a/apps/avatax/src/modules/avatax/calculate-taxes/avatax-calculate-taxes-adapter.ts +++ b/apps/avatax/src/modules/avatax/calculate-taxes/avatax-calculate-taxes-adapter.ts @@ -38,7 +38,7 @@ export class AvataxCalculateTaxesAdapter { const transformedResponse = this.avataxCalculateTaxesResponseTransformer.transform(response); transformedResponse.lines.forEach((l) => { - const tax = (l.total_gross_amount = l.total_net_amount); + const tax = (l.total_gross_amount - l.total_net_amount); const rate = l.tax_rate; if (tax === 0 && rate !== 0) {