|
@@ -123,7 +123,7 @@ class AgentOrderView(View):
|
|
|
pay_price = Decimal(order_qs[0]['price']).quantize(Decimal('0.00'))
|
|
|
profit = cls.calculate_order_profit(agent_package, pay_price)
|
|
|
|
|
|
- dict_data = {'ac_id': ac_id, 'serial_number': serial_number, 'csp_id': package_id,
|
|
|
+ dict_data = {'ac_id': ac_id, 'serial_number': serial_number, 'csp_id': agent_package.id,
|
|
|
'order_id': order_id, 'status': 1, 'profit_amount': pay_price, 'profit': profit,
|
|
|
'pay_time': order_qs[0]['payTime'], 'created_time': now_time, 'updated_time': now_time}
|
|
|
AgentDeviceOrder.objects.create(**dict_data)
|