class Skr::Vendor
Vendors is a companies you purchase goods and services from. They have both a billing and shipping address, a gl account that payables should be applied against, and a payment term.
Private Instance Methods
set_defaults()
click to toggle source
# File lib/skr/models/vendor.rb, line 25 def set_defaults self.terms ||= PaymentTerm.find_by_code(Skr.config.customer_terms_code) self.gl_payables_account ||= GlAccount.default_for( :ap ) self.gl_freight_account ||= GlAccount.default_for( :freight ) end