Skip to content

Commit 03702c2

Browse files
authored
fix(ML): fix incorrect discount_type value for prices without discount (#1213)
1 parent 954cc24 commit 03702c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

open_prices/proofs/ml/price_tags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def selected_price(self) -> SelectedPrice | None:
288288
price_per=selected_unit,
289289
price_is_discounted=False,
290290
price_without_discount=None,
291-
discount_type=DiscountType.NO_DISCOUNT,
291+
# discount_type must be null if price_is_discounted is False
292+
discount_type=None,
292293
)
293294

294295
return None

0 commit comments

Comments
 (0)