update sale payment for rebate deleting puts
This commit is contained in:
@@ -413,8 +413,7 @@ class SalePayment < ApplicationRecord
|
|||||||
rebate_arr.push(data)
|
rebate_arr.push(data)
|
||||||
|
|
||||||
end
|
end
|
||||||
puts "ssssssssss"
|
|
||||||
puts rebate_arr.to_json
|
|
||||||
total_amount = rebate_prices - payparcost - overall_dis
|
total_amount = rebate_prices - payparcost - overall_dis
|
||||||
|
|
||||||
if credit == 1
|
if credit == 1
|
||||||
@@ -455,8 +454,7 @@ class SalePayment < ApplicationRecord
|
|||||||
response = { "status": false, "message": "Can't connect server"}
|
response = { "status": false, "message": "Can't connect server"}
|
||||||
end
|
end
|
||||||
return response
|
return response
|
||||||
puts "latest respppppp"
|
|
||||||
puts response.to_json
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
response = { "status": "no_member", "message": "Not membership"}
|
response = { "status": "no_member", "message": "Not membership"}
|
||||||
|
|||||||
Reference in New Issue
Block a user