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
Add tax calculation
greptile/review 1 files reviewed, 1 comments added.
greptile/probe done
9059665ed2
Author
Collaborator

Plain PR comment for fixture capture (edited by probe)

Plain PR comment for fixture capture (edited by probe)
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
Author
Collaborator

Probe: reply to inline comment

Probe: reply to inline comment
greptile-bot reviewed 2026-07-30 21:00:53 +00:00
greptile-bot left a comment
Author
Collaborator

Adapter smoke test: full review flow

Adapter smoke test: full review flow
@@ -0,0 +6,4 @@
discount?: Discount,
): number {
const base = totalCents(items, discount)
return base + base * (taxRatePercent / 100)
Author
Collaborator

Adapter smoke: tax addition should round to whole cents

Adapter smoke: tax addition should round to whole cents
greptile-bot marked this conversation as resolved
All checks were successful
greptile/probe done
greptile/review 1 files reviewed, 1 comments added.
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