module Quickbooks

Business Rules

Business Rules

developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/030_entity_services_reference/invoice#DiscountLineDetail

Business Rules

Business Rules

The Estimate object has the following business rules and validations:

Business Rules

Business Rules

General

This entity represents expenses, such as a purchase made from a vendor. There are three types of Purchases: Cash, Check, and Credit Card.

Business Rules

Business Rules

Business Rules

Docs: developer.intuit.com/docs/0100_accounting/0400_references/reports

Constants

VERSION

Attributes

log[W]

set logging on or off

log_xml_pretty_print[W]

set logging on or off

Public Class Methods

log(msg) click to toggle source
# File lib/quickbooks-ruby.rb, line 242
def log(msg)
  if log?
    logger.info(msg)
    logger.flush if logger.respond_to?(:flush)
  end
end
log?() click to toggle source

Returns whether to log. Defaults to 'false'.

# File lib/quickbooks-ruby.rb, line 233
def log?
  @log ||= false
end
log_xml_pretty_print?() click to toggle source

pretty printing the xml in the logs is “on” by default

# File lib/quickbooks-ruby.rb, line 238
def log_xml_pretty_print?
  defined?(@log_xml_pretty_print) ? @log_xml_pretty_print : true
end
logger() click to toggle source
# File lib/quickbooks-ruby.rb, line 221
def logger
  @@logger ||= ::Logger.new($stdout) # TODO: replace with a real log file
end
logger=(logger) click to toggle source
# File lib/quickbooks-ruby.rb, line 225
def logger=(logger)
  @@logger = logger
end
sandbox_mode() click to toggle source
# File lib/quickbooks-ruby.rb, line 213
def sandbox_mode
  @@sandbox_mode
end
sandbox_mode=(sandbox_mode) click to toggle source
# File lib/quickbooks-ruby.rb, line 217
def sandbox_mode=(sandbox_mode)
  @@sandbox_mode = sandbox_mode
end