Update payments_controller.rb

This commit is contained in:
2016-08-05 21:57:31 -04:00
committed by GitHub
parent 0318ffaa10
commit df6acde327

View File

@@ -19,12 +19,9 @@ class PaymentsController < ApplicationController
@customers = Customer.all
account_base = Qbo.get_base(:account).service
query = "SELECT Id, Name FROM Account WHERE AccountType = 'Checking' "
@accounts = account_base.all
@accounts = Qbo.get_base(:account).service.query("SELECT Id, Name FROM Account WHERE AccountType = 'Checking' ")
payment_method_base = Qbo.get_base(:payment_method).service
@payment_methods = payment_method_base.all
@payment_methods = Qbo.get_base(:payment_method).service.all
end
def create