浏览代码

尾款明细展示

whitefang 1 年之前
父节点
当前提交
e896933565
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/api/logic/ServiceOrderLogic.php

+ 2 - 2
app/api/logic/ServiceOrderLogic.php

@@ -439,8 +439,8 @@ class ServiceOrderLogic extends BaseLogic
                 $v['pay_way_name'] = $pay_way_data[$v['pay_way']];
 
                 if($v['payment_type']!=1 and !empty($order_info['service_work']['spare_total'])){
-                    $v['order_total'] = $v['order_total'] - $order_info['service_work']['spare_total'];
-                    $v['order_amount'] = $v['order_amount'] - $order_info['service_work']['spare_total'];
+                    $v['order_total'] = $v['order_total'] - $order_info['service_work']['spare_total'] - $v['coupon_price'];
+                    $v['order_amount'] = $v['order_amount'] - $order_info['service_work']['spare_total'] - $v['coupon_price'];
                 }
 
                 $coupon_price += $v['coupon_price'];