Work on orders and related
This commit is contained in:
@@ -221,6 +221,7 @@ async def get_obj_id_order_list(
|
||||
inc_order_cfg: bool = False,
|
||||
inc_order_line_list: bool = False,
|
||||
# inc_order_w_prod_type: str = 'all', # all, membership, fundraising, event, etc
|
||||
inc_person: bool = False,
|
||||
status: str = 'closed', # open, locked, reopened?, closed (complete), canceled, other
|
||||
enabled: str = 'enabled',
|
||||
limit: int = 50,
|
||||
@@ -239,6 +240,10 @@ async def get_obj_id_order_list(
|
||||
log.warning('Likely bad request')
|
||||
return mk_resp(data=False, status_code=400, response=response) # Bad Request
|
||||
|
||||
|
||||
log.debug(from_datetime)
|
||||
log.debug(to_datetime)
|
||||
|
||||
# Updated 2021-11-19
|
||||
if order_rec_list_result := get_order_rec_list(
|
||||
for_obj_type = obj_type,
|
||||
@@ -255,6 +260,7 @@ async def get_obj_id_order_list(
|
||||
order_id = order_rec.get('order_id', None),
|
||||
inc_order_cfg = inc_order_cfg,
|
||||
inc_order_line_list = inc_order_line_list,
|
||||
inc_person = inc_person,
|
||||
enabled = enabled,
|
||||
limit = limit,
|
||||
by_alias = by_alias,
|
||||
|
||||
Reference in New Issue
Block a user