Description-Behavior Mismatch
Medium
- Confidence
- 97% confidence
- Finding
- The code defines promotion applicability logic but never uses it when calculating discounts, so promotions can be applied to items or carts that should be excluded. In a retail pricing engine this can produce unauthorized discounts, policy bypasses, and incorrect totals driven entirely by crafted knowledge-base data or item selections.
