commerce: line-level discount attribution (16 tests) — Phase 5 ext
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m5s

attribution.sx — the briefing's marquee "which line item triggered this
discount?" backward query. promo-lines gives each promo's pure scope
(percent/member -> class lines, bundle -> sku lines, fixed -> order-level);
promo-toucheso relates (code, line) for applying promos, run forward
(lines-for-code) and backward (codes-for-line). Additive; promo amounts
unchanged. Total 201/201 across 12 suites.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 10:30:38 +00:00
parent 1312a16111
commit 563fac9e62
6 changed files with 244 additions and 9 deletions

View File

@@ -15,4 +15,5 @@ _Generated by `lib/commerce/conformance.sh`_
| order | 21 | 0 | 21 |
| recon | 20 | 0 | 20 |
| federation | 12 | 0 | 12 |
| **Total** | **185** | **0** | **185** |
| attribution | 16 | 0 | 16 |
| **Total** | **201** | **0** | **201** |