v.2.24
1. Редактор карты зала.
This commit is contained in:
@@ -37,7 +37,7 @@ class GETOrder extends HRCCommand implements HRCCommandInterface {
|
||||
if (isset($orderItems)) {
|
||||
foreach ($orderItems as $key => $item) {
|
||||
$itemName = Dishes::getName($item['item_id']);
|
||||
$is_real = Dishes::isReal($item['item_id']);
|
||||
$is_serving = Dishes::isServing($item['item_id']);
|
||||
$itemModifiers = OrderItems::where('order_id', $order['id'])->where('parent_id', $item['id'])->whereNotNull('modifier_id')->get();
|
||||
if (isset($itemModifiers)) {
|
||||
foreach ($itemModifiers as $key => $itemModifier) {
|
||||
@@ -54,7 +54,7 @@ class GETOrder extends HRCCommand implements HRCCommandInterface {
|
||||
'item_name' => $itemName,
|
||||
'item_count' => round($item['item_count'], 3),
|
||||
'item_price' => round($item['item_price'], 2),
|
||||
'is_real' => $is_real,
|
||||
'is_serving' => $is_serving,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user