edit-plan-settle_static

This commit is contained in:
lccsw
2022-06-09 15:24:37 +08:00
parent 07e817d51f
commit d2c2475725
+1 -3
View File
@@ -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{