update customer transaction

This commit is contained in:
Aung Myo
2017-06-21 18:29:02 +06:30
parent d9d07a1cdc
commit 3ba836b446
3 changed files with 60 additions and 66 deletions

View File

@@ -53,13 +53,7 @@ class Transactions::SalesController < ApplicationController
#get customer amount
@customer = Customer.find(@sale.customer_id)
response = Customer.get_member_account(@customer)
if(response["status"] == true)
@membership = response["data"]
else
@membership = 0
end
@response = Customer.get_membership_transactions(@customer)
#end customer amount
respond_to do |format|