mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update qbo_estimate.rb
This commit is contained in:
1 parent
3189d227fc
commit
be95de7066
1 file changed
+2
-2
@@ -14,11 +14,11 @@ class QboEstimate < ActiveRecord::Base
|
|||||||
attr_accessible :doc_number
|
attr_accessible :doc_number
|
||||||
validates_presence_of :id, :doc_number
|
validates_presence_of :id, :doc_number
|
||||||
|
|
||||||
def self.get_base
|
def get_base
|
||||||
Qbo.get_base(:estimate)
|
Qbo.get_base(:estimate)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_all
|
def sync
|
||||||
estimates = get_base.service.all
|
estimates = get_base.service.all
|
||||||
|
|
||||||
# Update the item table
|
# Update the item table
|
||||||
|
|||||||
Reference in new issue
Block a user