diff --git a/README.md b/README.md index 2d9d60c9..6eee9e4e 100755 --- a/README.md +++ b/README.md @@ -269,6 +269,9 @@ For Food Court Settings On/Off 4) settings/lookups => { type:customer_type, name: FoodCourt, value: FoodCourt } /* Tax Profile Group Types in lookups */ +For Online Order Receip Setting +1) settings/lookups => { type:order_reservation, name:ReceiptBill, value: {0 or 1} } + * ToDo list 1. Migration diff --git a/app/controllers/origami/order_reservation_controller.rb b/app/controllers/origami/order_reservation_controller.rb index 81f38324..67df6e6f 100644 --- a/app/controllers/origami/order_reservation_controller.rb +++ b/app/controllers/origami/order_reservation_controller.rb @@ -5,6 +5,11 @@ class Origami::OrderReservationController < BaseOrigamiController @count_on_order = OrderReservation.get_count_on_order @count_on_completed = OrderReservation.get_count_on_completed @shop = Shop.find_by_id(1) + receipt_bill = Lookup.collection_of("order_reservation") + @receipt_bill = 0 + if !receipt_bill[0].nil? + @receipt_bill = receipt_bill[0][1] + end end def update