add-tax-support
main
Adds totalWithTaxCents on top of the cart module.
Plain PR 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)
This returns fractional cents - needs rounding
No dependencies set.
The note is not visible to the blocked user.
Adds totalWithTaxCents on top of the cart module.
Plain PR 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)This returns fractional cents - needs rounding
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.