filters in orders by product

This commit is contained in:
2023-11-16 03:28:36 +03:00
parent cba9d37cdb
commit 57bb4fd5e4
3 changed files with 11 additions and 5 deletions

View File

@@ -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')