diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index 9c9232d..3e4c7ac 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -709,6 +709,7 @@ class LedgerForm extends BaseModel $log->updated_at = $time; $log->saveOrFail(); + $platformDecoctTotal = 0; //增加代煎费 if($productOrder->decoct_price > 0){ $platformDecoctTotal = Ledger::find()->where(['order_id' => $this->order_id, 'user_type' => 2, 'order_type' => 1, 'fee_type' => 4])->sum('money'); // 该订单代煎费用 @@ -762,7 +763,7 @@ class LedgerForm extends BaseModel $logDelivery->saveOrFail(); } - $platformTotal = round($platformDrugTotal+$platformDeliveryTotal?? 0+$platformDecoctTotal + $processPriceTotal, 2); //该订单平台分佣总金额 + $platformTotal = round($platformDrugTotal+$processPriceTotal+$platformDeliveryTotal?? 0+$platformDecoctTotal, 2); //该订单平台分佣总金额 //可提现金额表更新 CashAccount::updateAllCounters(['able_cash' => $platformTotal, 'total_cash' => $platformTotal],['user_type' => 2]); //平台