lib/xeroizer/models/organisation.rb in xeroizer-2.18.1 vs lib/xeroizer/models/organisation.rb in xeroizer-2.19.0
- old
+ new
@@ -1,5 +1,6 @@
+require "xeroizer/models/payment_terms"
module Xeroizer
module Record
class OrganisationModel < BaseModel
@@ -60,9 +61,10 @@
string :sales_tax_period
has_many :addresses
has_many :phones
has_many :external_links
+ has_one :payment_terms, :model_name => 'PaymentTerms'
validates :sales_tax_basis, :message => "is not a valid option" do
valid = true
if sales_tax_basis