mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 17:13:59 -05:00
Added missing to_s method
This commit is contained in:
@@ -15,6 +15,11 @@ class Estimate < ActiveRecord::Base
|
|||||||
validates_presence_of :doc_number, :id
|
validates_presence_of :doc_number, :id
|
||||||
self.primary_key = :id
|
self.primary_key = :id
|
||||||
|
|
||||||
|
# returns a human readable string
|
||||||
|
def to_s
|
||||||
|
return self[:doc_number]
|
||||||
|
end
|
||||||
|
|
||||||
# sync all estimates
|
# sync all estimates
|
||||||
def self.sync
|
def self.sync
|
||||||
logger.info "Syncing ALL estimates"
|
logger.info "Syncing ALL estimates"
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ class Invoice < ActiveRecord::Base
|
|||||||
validates_presence_of :doc_number, :id, :customer_id, :txn_date
|
validates_presence_of :doc_number, :id, :customer_id, :txn_date
|
||||||
self.primary_key = :id
|
self.primary_key = :id
|
||||||
|
|
||||||
|
# returns a human readable string
|
||||||
|
def to_s
|
||||||
|
return self[:doc_number]
|
||||||
|
end
|
||||||
|
|
||||||
# sync ALL the invoices
|
# sync ALL the invoices
|
||||||
def self.sync
|
def self.sync
|
||||||
logger.info "Syncing all invoices"
|
logger.info "Syncing all invoices"
|
||||||
|
|||||||
Reference in New Issue
Block a user