Skip to content

Commit

Permalink
Update avatax-calculate-taxes-adapter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski authored Dec 16, 2024
1 parent 14902a4 commit 47fde7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 47fde7e

Please sign in to comment.