membership update

This commit is contained in:
Yan
2017-07-24 19:24:43 +06:30
parent 8db4a8cc05
commit bf9b977cd0
9 changed files with 60 additions and 38 deletions

View File

@@ -181,11 +181,10 @@ class Origami::DiscountsController < BaseOrigamiController
rescue SocketError
response = {:status=> false, :message => "Can't open membership server " }
end
table_id = sale.bookings[0].dining_facility_id
table_type = DiningFacility.find(table_id).type
puts response
puts "sssssssssss"
# Re-calc All Amount in Sale
if response["status"] == true
discount_amount = response["discount_earned"]