feat: admin panel
This commit is contained in:
		@@ -33,10 +33,10 @@ def get_orders():
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@orders_blueprint.get('/getByProductId')
 | 
					@orders_blueprint.get('/getByProductId')
 | 
				
			||||||
def get_orders_by_supplier_product_id():
 | 
					def get_orders_by_supplier_product_id():
 | 
				
			||||||
    #user_id = get_jwt_identity()
 | 
					    user_id = get_jwt_identity()
 | 
				
			||||||
    #city_id = database.db.session.get(database.User, user_id).city_id
 | 
					    city_id = database.db.session.get(database.User, user_id).city_id
 | 
				
			||||||
    params = dict(request.args)
 | 
					    params = dict(request.args)
 | 
				
			||||||
    #params['city'] = city_id
 | 
					    params['city'] = city_id
 | 
				
			||||||
    return sipro.api.orders.get_orders_from_barcode(params=params)
 | 
					    return sipro.api.orders.get_orders_from_barcode(params=params)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user