edit-plan-settle_static
This commit is contained in:
@@ -157,10 +157,9 @@ class Biz extends HD_Controller
|
||||
$employee_wage = $biz_info['num'] ? ceil($car_total/$biz_info['num']) : 0;
|
||||
$data['employee_wage'] = $employee_wage;
|
||||
$data['price_total'] = $val['price_all']+$data['profix_car_after'];
|
||||
$price_need = $data['price_total'] - $data['rent'] - $data['wat_ele'] - $data['employee_wage'] - $data['manager_wage'] - $data['commission'] - $data['price_trucking'];
|
||||
$price_need = $data['price_total'] - $data['rent'] - $data['wat_ele'] - $data['employee_wage'] - $data['manager_wage'] - $data['commission'] - $val['price_trucking'];
|
||||
$partner_rate = $biz_info['rate']/100;
|
||||
$liche_rate = (100-$biz_info['rate'])/100;
|
||||
|
||||
$data['profix_liche'] = $price_need*$liche_rate;
|
||||
$data['profix_partner'] = $price_need*$partner_rate;
|
||||
|
||||
@@ -169,7 +168,6 @@ class Biz extends HD_Controller
|
||||
if($overflow['oflow_profix_car']){
|
||||
$data['profix_partner_oflow'] = sprintf("%.2f",$overflow['oflow_profix_car']/1.13);
|
||||
}
|
||||
|
||||
$this->biz_settle_static_model->update($data,['id'=>$val['id']]);
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user