v.2.16
Исправление типов действий
This commit is contained in:
@@ -62,7 +62,12 @@ class GETOnlineStaff extends HRCCommand implements HRCCommandInterface {
|
||||
$items = [];
|
||||
$order = ShiftOnlineOrders::where('code', $orderId)->first();
|
||||
$who_open = staffName($order['who_open']);
|
||||
$who_close = staffName($order['who_close']);
|
||||
if ($order['who_close'] == 0) {
|
||||
$who_close = '-';
|
||||
} else {
|
||||
$who_close = staffName($order['who_close']);
|
||||
}
|
||||
|
||||
$onlineItems = ShiftOnlineItems::where('order_code', $order['code'])->where('modificator_code', 0)->get();
|
||||
foreach ($onlineItems as $key => $item) {
|
||||
$realPrice = $item['real_price'] * $item['count'] * $item['cof'];
|
||||
|
||||
Reference in New Issue
Block a user