mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
add todo notes
This commit is contained in:
@@ -168,6 +168,7 @@ class ItemCategory(LoggedModel):
|
||||
)
|
||||
print("potential_discounts_dict", potential_discounts_dict)
|
||||
potential_discounts = {info for lst in potential_discounts_dict.values() for info in lst}
|
||||
# TODO sum up the max_counts and pass them on (also pass on the discount_rules so we can calculate actual discounted prices later)
|
||||
potential_discount_items = {item.pk for (discount_rule, max_count, i) in potential_discounts for item in discount_rule.benefit_limit_products.all()}
|
||||
return self.items.filter(pk__in=potential_discount_items)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user