Add tax calculation #1

Open
greptile-bot wants to merge 1 commits from add-tax-support into main
Collaborator

Adds totalWithTaxCents on top of the cart module.

Adds totalWithTaxCents on top of the cart module.
greptile-bot added 1 commit 2026-07-25 21:52:02 +00:00
Author
Collaborator

Plain PR comment for fixture capture

Plain PR comment for fixture capture
greptile-bot reviewed 2026-07-25 22:00:19 +00:00
greptile-bot left a comment
Author
Collaborator

Review with an inline comment for fixture capture

Review with an inline comment for fixture capture
@@ -0,0 +6,4 @@
discount?: Discount,
): number {
const base = totalCents(items, discount)
return base + base * (taxRatePercent / 100)
Author
Collaborator

This returns fractional cents - needs rounding

This returns fractional cents - needs rounding
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin add-tax-support:add-tax-support
git checkout add-tax-support
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: abhinav/test-repo#1