瀏覽代碼

计算利润或者营业额

linhaohong 1 年之前
父節點
當前提交
dff1257e4c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      AdminController/CloudServiceManage/AgentDeviceController.py

+ 1 - 2
AdminController/CloudServiceManage/AgentDeviceController.py

@@ -165,8 +165,7 @@ class AgentDeviceView(View):
 
             # 根据利润类型计算利润或者直接使用营业额
             if metric_type == 1:  # 利润
-                profit = package.profit if package.profit_type == 1 else order.profit_amount * package.profit / Decimal(
-                    '100.00')
+                profit = order.profit
             else:  # 营业额
                 profit = order.profit_amount