change receipt no report ui and add sale taxes for dining charges
This commit is contained in:
@@ -9,7 +9,7 @@ class Api::Restaurant::MenuController < Api::ApiController
|
||||
all_menu = Menu.all
|
||||
@request_url = ''
|
||||
if ENV["SERVER_MODE"] == "cloud"
|
||||
@request_url = request.subdomain + "." + request.domain #local_url => 'http://0.0.0.0:3000'
|
||||
@request_url = request.base_url
|
||||
end
|
||||
# to hash
|
||||
menu_array = []
|
||||
|
||||
@@ -27,7 +27,8 @@ authorize_resource :class => false
|
||||
payment_type = params[:payment_type]
|
||||
@sale_data = Sale.get_shift_sales_by_receipt_no(@shift_sale_range,@shift,from,to,payment_type)
|
||||
@sale_taxes = Sale.get_separate_tax(@shift_sale_range,@shift,from,to,payment_type)
|
||||
@tax_profiles = TaxProfile.where('group_type = "cashier"').order('order_by asc').limit(2)
|
||||
@tax_profiles = TaxProfile.group('name').order('order_by asc') #.limit(2)
|
||||
|
||||
@from = from
|
||||
@to = to
|
||||
# get printer info
|
||||
|
||||
Reference in New Issue
Block a user