add menu item taxable
This commit is contained in:
@@ -20,7 +20,7 @@ class OrderItem < ApplicationRecord
|
||||
# option_values : [],
|
||||
# sub_order_items : [],
|
||||
# }
|
||||
def self.processs_item (item_code, instance_code, menu_name, alt_name, account_id, qty,price, options, set_menu_items, order_id, item_order_by)
|
||||
def self.processs_item (item_code, instance_code, menu_name, alt_name, account_id, qty,price, options, set_menu_items, order_id, item_order_by, taxable)
|
||||
|
||||
orderitem = OrderItem.create do |oitem|
|
||||
oitem.order_id = order_id
|
||||
@@ -31,6 +31,7 @@ class OrderItem < ApplicationRecord
|
||||
oitem.account_id = account_id
|
||||
oitem.qty = qty
|
||||
oitem.price = price
|
||||
oitem.taxable = taxable
|
||||
oitem.options = options
|
||||
oitem.set_menu_items = set_menu_items
|
||||
oitem.item_order_by = item_order_by #person who order this. * If emenu - it will be login user on the app
|
||||
|
||||
Reference in New Issue
Block a user