Files
rose-ash/lib/commerce/price.sx
giles 29955831be
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 56s
commerce: deterministic subtotal + jurisdiction-relational tax (20 tests)
price.sx — cart-subtotal (unit price = base + variant delta, default 0),
taxo facts indexed by (jurisdiction, product-class, customer-class) -> bps
queried both directions, apply-bps half-up integer rounding, cart-total
returning {:subtotal :discounts :tax :total} reproducible from
(context, cart). Total 54/54.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 23:45:05 +00:00

2.9 KiB