fixed otherpayment & redeem

This commit is contained in:
NyanLinHtut
2020-06-22 09:56:49 +06:30
parent ec62d54f3b
commit d5323f603b
5 changed files with 10 additions and 9 deletions

View File

@@ -142,8 +142,9 @@ class SaleAudit < ApplicationRecord
if paymal[0]
remark = paymal[0].remark.split("}")
response = "["+remark[0]+'}]'
response = JSON.parse(response)
# puts response
# response = JSON.parse(response)
if response[0]["status"] == true
if response[0]["current_rebate_amount"].present?
amount = response[0]["current_rebate_amount"]