Sha256: bb5b3e3b675e35d630741f233b9220b399109b3c0839bf0ce97aba8cdae0775b

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

# This file sets up the classes for QuickBooks entities, transactions and reports.

# Types that allow Query and Delete only
QBFC_DELETE_ONLY = %w{PayrollItemNonWage DataEventRecoveryInfo}

# Report types return an IReportRet
QBFC_REPORT_TYPES = %w{AgingReport BudgetSummaryReport CustomDetailReport CustomSummaryReport
                      GeneralDetailReport GeneralSummaryReport JobReport PayrollDetailReport PayrollSummaryReport TimeReport }

# Types that allow Special adds (Pre-defined and normally added automatically by QuickBooks)
QBFC_HAS_SPECIAL_ADD = %w{Account Item}

# TODO: Here and below arrays I haven't yet formed any approach to dealing with.
# I leave them here as a reminder.
ELEMENTS_ADD_MOD = %w{ DataExt }         
                    
ELEMENTS_ADD_MOD_QUERY = %w{ DataExtDef }
                    
# Types that have their own DelRq
ELEMENT_DEL_TYPES = %w{DataEventRecoveryInfo DataExt DataExtDef}

# Query types support Query requests only and return an itemized list of some sort;
# most of these may be integrated as special finders for their types.
QBFC_QUERY_TYPES =  %w{BillToPay ListDeleted ReceivePaymentToDeposit Template TxnDeleted SalesTaxPaymentCheck}

QBFC_ANOTHER_TO_INTEGRATE_SOMEWHERE = %w{ ItemAssembliesCanBuild }


module QBFC
  # Create QBElement classes
  (QBFC_REPORT_TYPES + QBFC_DELETE_ONLY + %w{DataExt DataExtDef}).uniq.each do | qb_element_name |
    const_set(qb_element_name, Class.new(Base))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qbfc-0.1.0-x86-mswin32-60 lib/qbfc/qb_types.rb