总金额
This commit is contained in:
parent
c05b1b9e06
commit
7ffd2bd477
@ -74,7 +74,6 @@ class OrderService extends Service
|
||||
])->withConditions(['order_id' => $order_ids])->groupBy('order_id')->get()->keyBy('order_id');
|
||||
|
||||
$orders->map(function ($item) use ($companies, $packages, $members) {
|
||||
$item->unit_price = sprintf('%.02f', $item->unit_price/100);
|
||||
$item->company_name = $companies[$item->company_id];
|
||||
$item->package_name = $packages[$item->package_id];
|
||||
|
||||
@ -90,6 +89,7 @@ class OrderService extends Service
|
||||
|
||||
|
||||
$item->custom_price = sprintf('%.02f', $item->unit_price * $item->counts/100);
|
||||
$item->unit_price = sprintf('%.02f', $item->unit_price/100);
|
||||
|
||||
$item->pay_channel_name = CommonService::namePayChannel($item->pay_channel);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user