Added missing to_s method

This commit is contained in:
2026-01-29 21:36:50 -05:00
parent f023cd246d
commit d3a8c05f50
2 changed files with 10 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ class Invoice < ActiveRecord::Base
belongs_to :customer
validates_presence_of :doc_number, :id, :customer_id, :txn_date
self.primary_key = :id
# returns a human readable string
def to_s
return self[:doc_number]
end
# sync ALL the invoices
def self.sync