Skip to content

Commit

Permalink
fix(vat): return at least 0 vat if none applies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Dec 6, 2024
1 parent 55fccb4 commit 5126475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ export class OrderingService
currency_id: unit_price.currency_id,
gross: gross.decimalPlaces(precision).toNumber(),
net: net.decimalPlaces(precision).toNumber(),
vats,
vats: vats.length ? vats : [{ vat: 0 }],
};
}
) ?? []);
Expand Down

0 comments on commit 5126475

Please sign in to comment.