diff --git a/app/assets/stylesheets/origami.scss b/app/assets/stylesheets/origami.scss index 3229ed3e..6b350bf1 100644 --- a/app/assets/stylesheets/origami.scss +++ b/app/assets/stylesheets/origami.scss @@ -9,6 +9,7 @@ // min-height: 75rem; // padding-top: 4.5rem; // } + .others-payment{ line-height:100px; text-align:center; @@ -41,12 +42,13 @@ .pay{ width: 98%; - height:211px; + height:211px; line-height:211px; text-align:center; font-size:20px; color:white; } + .payment{ height:70px;line-height:70px;align:center;color:white;font-size:16px;margin-bottom:1px; } @@ -58,6 +60,7 @@ .credit-color{ background-color:#FFCCBC; } + .other-payment-color{ background-color:#E1BEE7; } @@ -100,6 +103,11 @@ background-color: blue !important; } +.selected-account { + color: #fff !important; + background-color: blue !important; +} + /* Reciept Style */ #order-charges-table td { border-top: none !important; diff --git a/app/models/order.rb b/app/models/order.rb index 7ab39a4c..1337b89b 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -82,7 +82,7 @@ class Order < ApplicationRecord set_order_items end - OrderItem.processs_item(menu_item[:item_code], menu_item[:name], + OrderItem.processs_item(menu_item[:item_code], menu_item[:name], menu_item[:account_id] item[:quantity],menu_item[:price], item[:options], set_order_items, self.id, self.employee_name) diff --git a/app/models/order_item.rb b/app/models/order_item.rb index 564aa939..2c9a9ba0 100644 --- a/app/models/order_item.rb +++ b/app/models/order_item.rb @@ -20,12 +20,13 @@ class OrderItem < ApplicationRecord # option_values : [], # sub_order_items : [], # } - def self.processs_item (item_code, menu_name, qty,price, options, set_menu_items, order_id, item_order_by) + def self.processs_item (item_code, menu_name, account_id, qty,price, options, set_menu_items, order_id, item_order_by) orderitem = OrderItem.create do |oitem| oitem.order_id = order_id oitem.item_code = item_code oitem.item_name = menu_name + oitem.account_id = account_id oitem.qty = qty oitem.price = price oitem.options = options diff --git a/app/models/sale.rb b/app/models/sale.rb index e717717a..4998abfc 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -133,6 +133,7 @@ class Sale < ApplicationRecord #pull sale_item.product_code = item.item_code sale_item.product_name = item.item_name + sale_item.account_id = item.account_id sale_item.remark = item.remark sale_item.qty = item.qty diff --git a/app/views/origami/discounts/index.html.erb b/app/views/origami/discounts/index.html.erb index 2a063007..b2d3d5bc 100644 --- a/app/views/origami/discounts/index.html.erb +++ b/app/views/origami/discounts/index.html.erb @@ -88,17 +88,6 @@