Merge branch 'adminbsb_ui_changes' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -193,7 +193,7 @@ class Menu < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
image_path = ""
|
image_path = ""
|
||||||
if row["Image Path"] != ""
|
if row["Image Path"] && row["Image Path"] != ""
|
||||||
image_path = URI.parse('public/image/menu_images/'+row["Image Path"])
|
image_path = URI.parse('public/image/menu_images/'+row["Image Path"])
|
||||||
end
|
end
|
||||||
menu_itm = MenuItem.create(item_code: row["Item Code"], name: row["Item Name"], account_id: account.id, alt_name: row["Item AltName"], image_path: image_path, description: '', information: '', unit: '', type: "SimpleMenuItem", menu_category_id: menu_cat.id, item_attributes: item_attrs, item_options: item_opts, is_sub_item: 0, is_available: 1, created_by: created_by)
|
menu_itm = MenuItem.create(item_code: row["Item Code"], name: row["Item Name"], account_id: account.id, alt_name: row["Item AltName"], image_path: image_path, description: '', information: '', unit: '', type: "SimpleMenuItem", menu_category_id: menu_cat.id, item_attributes: item_attrs, item_options: item_opts, is_sub_item: 0, is_available: 1, created_by: created_by)
|
||||||
|
|||||||
Reference in New Issue
Block a user