Fetch all non cancelled Shopify orders
Orders with only gift cards are directly archived by Shopify but we need to fetch them.
This commit is contained in:
@@ -707,9 +707,9 @@ class Shop(metaclass=PoolMeta):
|
||||
query = ' OR '.join(
|
||||
f'id:{id}' for id in context['shopify_orders'])
|
||||
elif last_order_id:
|
||||
query = f'status:open AND id:>{last_order_id}'
|
||||
query = f'-status:cancelled AND id:>{last_order_id}'
|
||||
else:
|
||||
query = 'status:open'
|
||||
query = '-status:cancelled'
|
||||
orders = shopify.GraphQL().execute(
|
||||
QUERY_ORDERS % {
|
||||
'query': query,
|
||||
|
||||
Reference in New Issue
Block a user