Skip to content
Snippets Groups Projects
Commit 571b5d6d authored by Cam Saül's avatar Cam Saül
Browse files

Metabase tax cut :money_with_wings:

parent f4d30f4a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -199,9 +199,7 @@
(let [tax-rate (state->tax-rate state)
_ (assert tax-rate
(format "No tax rate found for state '%s'." state))
tax (-> (* price 100.0)
int
(/ 100.0))]
tax (u/round-to-decimals 2 (* price tax-rate))]
{:user_id (:id person)
:product_id (:id product)
:subtotal price
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment