fix: 💸 Change taxes to 8.9% (Antonito)
This commit is contained in:
parent
8dcc84755e
commit
3590ee40c5
|
@ -107,7 +107,7 @@ class Cart { constructor() {
|
|||
// Sales tax
|
||||
self.tax = ko.pureComputed(() => {
|
||||
// Set tax rates here
|
||||
if (self.state()==='CO') return 0.049
|
||||
if (self.state()==='CO') return 0.089
|
||||
else return 0
|
||||
})
|
||||
self.tax_pretty = ko.pureComputed(() => {
|
||||
|
|
|
@ -110,7 +110,7 @@ module.exports = async (req, res) => {
|
|||
const taxesPromise = new Promise((resolve, reject) => {
|
||||
if (!order.shipping.address.state) reject(`order.shipping.address.state not provided!`)
|
||||
let tax = 0
|
||||
if (order.shipping.address.state==='CO') tax = 0.049
|
||||
if (order.shipping.address.state==='CO') tax = 0.089
|
||||
else tax = 0
|
||||
if (tax===order.tax) resolve(tax)
|
||||
else reject(`Taxes calculated as ${tax} didn't match what was sent by the client (${order.tax})`)
|
||||
|
|
Loading…
Reference in New Issue