diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index 4a19a7d..2362ca6 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -727,7 +727,7 @@ class LedgerForm extends BaseModel $logDecoct->saveOrFail(); } - $processPriceTotal = 0; + $platformProcessTotal = 0; //增加加工费 if($productOrder->process_price > 0){ $platformProcessTotal = Ledger::find()->where(['order_id' => $this->order_id, 'user_type' => 2, 'order_type' => 1, 'fee_type' => 5])->sum('money'); // 该订单加工费用 @@ -763,7 +763,7 @@ class LedgerForm extends BaseModel $logDelivery->saveOrFail(); } - $money1 = bcadd($platformDrugTotal, $processPriceTotal, 2); + $money1 = bcadd($platformDrugTotal, $platformProcessTotal, 2); $money2 = bcadd($platformDeliveryTotal, $platformDecoctTotal, 2); $platformTotal = round(bcadd($money1, $money2, 2), 2); //该订单平台分佣总金额 //可提现金额表更新