Got the reporting fixed for multi skus.

This commit is contained in:
counterweight 2023-12-02 18:03:36 +01:00
parent 3b24f96352
commit f5b33cce74
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 34 additions and 22 deletions

View file

@ -109,9 +109,12 @@ class Orders:
filtered_orders = []
for order in self:
order_contains_at_least_one_of_the_skus = None # Guilty until proven innocent
for sku in skus:
if order.contains_sku(sku):
filtered_orders.append(order)
order_contains_at_least_one_of_the_skus = True
if order_contains_at_least_one_of_the_skus:
filtered_orders.append(order)
return Orders(filtered_orders)