v.1.8 update

This commit is contained in:
miroman-afk
2021-11-01 15:19:27 +03:00
parent 87cf29a443
commit a54a91263a
2 changed files with 19 additions and 21 deletions

View File

@@ -77,7 +77,6 @@ class ClientFile extends HRCCommand implements HRCCommandInterface {
fputcsv($handle, $row, ';');
}
}
}
fclose($handle);
$files = glob($tmp_dirname . "*.*");
usort($files, function ($a, $b) {

View File

@@ -34,7 +34,6 @@ class GETOrder extends HRCCommand implements HRCCommandInterface {
}
$orderItems = OrderItems::where('order_id', '=', $order->id)->whereNull('modifier_id')->get();
$modOut = array();
if (isset($orderItems)) {
foreach ($orderItems as $key => $item) {
$itemName = Dishes::where('code', '=', $item->item_id)->first();
@@ -42,9 +41,9 @@ class GETOrder extends HRCCommand implements HRCCommandInterface {
$itemModifiers = OrderItems::where('order_id', '=', $order->id)->where('parent_id', '=', $item->id)->whereNotNull('modifier_id')->get();
if (isset($itemModifiers)) {
foreach ($itemModifiers as $key => $itemModifier) {
$modifier = Modifier::where('id', '=', $itemModifier->modifier_id)->first();
$modifier = Modifier::where('code', '=', $itemModifier->modifier_id)->first();
if ($modifier->dish_code == 0 && $modifier->unit_id == 0) {
$modOut[] = array('' => , );
$modOut[] = array('id' => $modifier->code, 'name' => $modifier->name, 'price' => '*');
}
}
}