update sale

This commit is contained in:
Aung Myo
2017-07-06 09:59:33 +06:30
parent fcc9ed02a0
commit f6e52fd619

View File

@@ -262,7 +262,8 @@ class SalePayment < ApplicationRecord
self.sale.sale_status = "completed"
response = rebat(sObj)
puts "hhhhhhh"
puts response.to_json
if response["status"] == true
self.sale.rebate_status = 'true'
end