module DocumentNumbering

Public Instance Methods

auto_doc_number!() click to toggle source

Convenience method for proper AutoDocNumber tag construction, which should be blank if auto document numbering is desired.

# File lib/quickbooks/model/document_numbering.rb, line 6
def auto_doc_number!
  self.auto_doc_number = ''
end

Private Instance Methods

document_numbering() click to toggle source
# File lib/quickbooks/model/document_numbering.rb, line 12
def document_numbering
  if !auto_doc_number.nil? && !doc_number.nil?
    errors.add(:doc_number, "DocumentNumber should not be specified if AutoDocNumber is.")
  end
end