This commit is contained in:
Nweni
2017-06-14 10:07:31 +06:30
parent 2e316f46fe
commit 7d5d23e5a6
9 changed files with 156 additions and 366 deletions

View File

@@ -37,7 +37,7 @@ class Origami::PaymentsController < BaseOrigamiController
'Accept' => 'application/json'
}
)
@balance = 0.00
@accountable_type = ''
if response["data"]==true
@@ -45,10 +45,10 @@ class Origami::PaymentsController < BaseOrigamiController
if res["accountable_type"] == "RebateAccount"
@balance = res["balance"]
@accountable_type = res["accountable_type"]
end
end
end
end
#end customer amount
@sale_data.sale_payments.each do |spay|