filters in orders by product
This commit is contained in:
@@ -30,9 +30,9 @@ def get_orders():
|
||||
|
||||
@orders_blueprint.get('/getByProductId')
|
||||
def get_orders_by_supplier_product_id():
|
||||
args = request.args
|
||||
product_id = args.get('productId')
|
||||
return sipro.api.orders.get_orders_by_product_id(product_id)
|
||||
params = dict(request.args)
|
||||
# product_id = args.get('productId')
|
||||
return sipro.api.orders.get_orders_from_barcode(params=params)
|
||||
|
||||
|
||||
@orders_blueprint.get('/getOrderById')
|
||||
|
||||
Reference in New Issue
Block a user