shop code

This commit is contained in:
Myat Zin Wai Maw
2019-11-22 18:24:02 +06:30
parent 5a3f328789
commit d1ab2c194d
106 changed files with 834 additions and 895 deletions

View File

@@ -24,9 +24,9 @@ authorize_resource :class => false
end
end
@lookup = Lookup.find_by_lookup_type('reprint_receipt')
@lookup = Lookup.find_by_lookup_type_and_shop_code('reprint_receipt',@shop.shop_code)
if @lookup.nil?
@lookup = Lookup.create_reprint_receipt_lookup
@lookup = Lookup.create_reprint_receipt_lookup(@shop.shop_code)
end
payment_type = params[:payment_type]
@@ -152,7 +152,7 @@ authorize_resource :class => false
# else
# table = DiningFacility.find(bookings[0].dining_facility_id)
# end
shift = ShiftSale.current_open_shift(current_user.id)
shift = ShiftSale.current_open_shift(current_user)
if !shift.nil?
cashier_terminal = CashierTerminal.find(shift.cashier_terminal_id)
else