commerce: deterministic subtotal + jurisdiction-relational tax (20 tests)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 56s

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>
This commit is contained in:
2026-06-06 23:45:05 +00:00
parent 35957d779f
commit 29955831be
6 changed files with 227 additions and 7 deletions

View File

@@ -1,9 +1,10 @@
{
"suites": {
"catalog": {"pass": 16, "fail": 0},
"cart": {"pass": 18, "fail": 0}
"cart": {"pass": 18, "fail": 0},
"price": {"pass": 20, "fail": 0}
},
"total_pass": 34,
"total_pass": 54,
"total_fail": 0,
"total": 34
"total": 54
}