Skip to content

Commit

Permalink
Tax issue completed
Browse files Browse the repository at this point in the history
  • Loading branch information
daretobedifferent18 committed Sep 24, 2021
1 parent 8f6399b commit 4920e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default ModelBase.extend(CustomPrimaryKeyMixin, {
const isTaxEnabled = this.event.get('isTaxEnabled');
const taxRate = this.event.get('tax.rate');
if (isTaxEnabled) {
return ((taxRate * this.amount) / (100 + taxRate)).toFixed(2);
return ((taxRate * this.amount) / (100 + taxRate));
} else {
return 0;
}
Expand Down

0 comments on commit 4920e08

Please sign in to comment.