Fix a typo

This commit is contained in:
Raphael Michel
2026-09-13 20:31:50 +02:00
parent 96576b8235
commit ea40a670f4
+1 -1
View File
@@ -343,7 +343,7 @@ class Discount(LoggedModel):
if collect_potential_discounts is not None: if collect_potential_discounts is not None:
if n_groups * self.benefit_only_apply_to_cheapest_n_matches > len(benefit_idx_group): if n_groups * self.benefit_only_apply_to_cheapest_n_matches > len(benefit_idx_group):
# partially used discount ("for each 1 ticket you buy, get 50% on 2 t-shirts", cart content: 1 ticket # partially used discount ("for each 1 ticket you buy, get 50% on 2 t-shirts", cart content: 1 ticket
# but only 1 t-shirt) -> 1 shirt definitiv potential discount # but only 1 t-shirt) -> 1 shirt definitively potential discount
for idx in consume_idx: for idx in consume_idx:
collect_potential_discounts[idx] = [ collect_potential_discounts[idx] = [
(self, n_groups * self.benefit_only_apply_to_cheapest_n_matches - len(benefit_idx_group), -1, subevent_id) (self, n_groups * self.benefit_only_apply_to_cheapest_n_matches - len(benefit_idx_group), -1, subevent_id)