|
|
|
|
@ -555,10 +555,10 @@ class StatisticsController extends CommonController
|
|
|
|
|
->whereIn('bed_id', $beds->pluck('id'))
|
|
|
|
|
->sum('total');
|
|
|
|
|
$item->order_total = $orderTotal;
|
|
|
|
|
$item->shouxufei = $orderTotal * 0.006;
|
|
|
|
|
$item->zengshishui = $orderTotal * 0.06;
|
|
|
|
|
$item->shijishouru = $orderTotal - $item->shouxufei - $item->zengshishui;
|
|
|
|
|
$item->guanlifei = $item->shijishouru * 0.06;
|
|
|
|
|
$item->shouxufei = round($orderTotal * 0.006, 2);
|
|
|
|
|
$item->zengshishui = round($orderTotal * 0.06, 2);
|
|
|
|
|
$item->shijishouru = round($orderTotal - $item->shouxufei - $item->zengshishui, 2);
|
|
|
|
|
$item->guanlifei = round($item->shijishouru * 0.06, 2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导出
|
|
|
|
|
|