crpt
This commit is contained in:
@@ -221,3 +221,16 @@ def update_assembly_state():
|
||||
except Exception as e:
|
||||
print('Error while updating')
|
||||
return jsonify(ok=False)
|
||||
|
||||
|
||||
@assembly_blueprint.get('/needCrpt')
|
||||
def need_crpt():
|
||||
order_product_id = request.args.get('orderProductId')
|
||||
return sipro.api.orders.need_crpt(order_product_id)
|
||||
|
||||
|
||||
@assembly_blueprint.post('/attachCrpt')
|
||||
def attach_crpt():
|
||||
order_product_id = request.json.get('orderProductId')
|
||||
crpt = request.json.get('crpt')
|
||||
return sipro.api.orders.attach_crpt(order_product_id, crpt)
|
||||
|
||||
Reference in New Issue
Block a user