We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954cc24 commit 03702c2Copy full SHA for 03702c2
1 file changed
open_prices/proofs/ml/price_tags.py
@@ -288,7 +288,8 @@ def selected_price(self) -> SelectedPrice | None:
288
price_per=selected_unit,
289
price_is_discounted=False,
290
price_without_discount=None,
291
- discount_type=DiscountType.NO_DISCOUNT,
+ # discount_type must be null if price_is_discounted is False
292
+ discount_type=None,
293
)
294
295
return None
0 commit comments