Исправление типов действий
This commit is contained in:
miroman-afk
2022-06-14 16:47:00 +03:00
parent 7fdcbcc9e8
commit 8e4073ffe3
4 changed files with 250 additions and 46 deletions

View File

@@ -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'];