Method: NameEntity::Quality#journal_line_entry_tax

Defined in:
lib/quickbooks/util/name_entity.rb

#journal_line_entry_taxObject



56
57
58
59
60
61
62
# File 'lib/quickbooks/util/name_entity.rb', line 56

def journal_line_entry_tax
  if tax_code_ref
    # tax_applicable_on must be set
    errors.add(:tax_applicable_on, "TaxApplicableOn must be set when TaxCodeRef is set") if tax_applicable_on.nil?
    errors.add(:tax_amount, "TaxAmount must be set when TaxCodeRef is set") if tax_amount.nil?
  end
end