Commit 289f083
fix: properly distribute order discount proportionally across items
Updates discount calculation to use total item value (price × quantity)
instead of just unit price, ensuring accurate proportional distribution
based on each item's contribution to the order subtotal.
Fixes #28
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent f55eb6e commit 289f083
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
0 commit comments