mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo_invoice.rb
This commit is contained in:
@@ -14,11 +14,11 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
attr_accessible :doc_number
|
attr_accessible :doc_number
|
||||||
validates_presence_of :id, :doc_number
|
validates_presence_of :id, :doc_number
|
||||||
|
|
||||||
def get_base
|
def self.get_base
|
||||||
Qbo.get_base(:invoice)
|
Qbo.get_base(:invoice)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync
|
def self.sync
|
||||||
#Pull the invoices from the quickbooks server
|
#Pull the invoices from the quickbooks server
|
||||||
invoices = get_base.service.all
|
invoices = get_base.service.all
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user