Commit 8144275f authored by clone's avatar clone

1

parent 5c4004fa
......@@ -345,7 +345,7 @@ class StoreFeeService
$storeModel = new AStore();
$rent = $storeModel->getStoreCost("b.id,b.rent", ["a.id" => $item["store_id"]]);
if($officeAttendanceNum > 0){
$assume_fee = ceil($attendance_num * 100 / $officeAttendanceNum) * $rent["rent"] * 0.01;
$assume_fee = ceil($attendance_num * 100 / $officeAttendanceNum * $rent["rent"]) * 0.01;
}else{
$assume_fee = 0;
}
......@@ -444,7 +444,7 @@ class StoreFeeService
$item["transfer_charge"], $attendance_num, $officeAttendanceNum, $districtNum, $companyAttendanceNum,
$item["transfer_charge"], ""
));
$storeCostExtModel = new FStoreCostExt();
$is_ok = $storeCostExtModel->addCostExt($insertArr);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment