Explorar o código

up - 只分账预支付尾款即非固定价格,一口价、一口价预付都由SaaS计算

liugc hai 9 meses
pai
achega
2cb9457bf5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/common/logic/ExternalPlatformLogic.php

+ 2 - 0
app/common/logic/ExternalPlatformLogic.php

@@ -130,11 +130,13 @@ class ExternalPlatformLogic  extends BaseLogic
                     }
                 }
 
+                $firstAmount = \app\common\model\orders\RechargeOrder::where('work_id',$model->id)->where('payment_type',1)->value('order_amount');
                 $send_url = env('internal_api.api_url_host').'platf/performanceNotice';
                 $data = [
                     'external_platform_id'=> $model->external_platform_id,
                     'send_code'=> $send_code,
                     'work_sn'=> $model->work_sn,
+                    "firstAmount" => $firstAmount,//尾款自配件成本
                     "finalSelfPartCost" => $finalSelfPartCost,//尾款自配件成本
                     "finalCompanyPartCost" => $finalCompanyPartCost,//尾款公司配件成本
                     "totalPayment" => $model->work_total,//总支付金额