重试分账
This commit is contained in:
@@ -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); //该订单平台分佣总金额
|
||||
//可提现金额表更新
|
||||
|
||||
Reference in New Issue
Block a user