Got the reporting fixed for multi skus.
This commit is contained in:
parent
3b24f96352
commit
f5b33cce74
3 changed files with 34 additions and 22 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue