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

@@ -6,4 +6,5 @@ _Generated by `lib/commerce/conformance.sh`_
|-------|-----:|-----:|------:|
| catalog | 16 | 0 | 16 |
| cart | 18 | 0 | 18 |
| **Total** | **34** | **0** | **34** |
| price | 20 | 0 | 20 |
| **Total** | **54** | **0** | **54** |