require 'lanes/configuration' require_relative 'standard_pricing_provider' module Skr class Configuration < Lanes::Configuration # Database tables will have this prefix applied to them config_option :table_prefix, 'skr_' # The GL branch code to use for default newly created locations config_option :default_branch_code, '01' # The string value of the UserModel. Will be set on model's updated_by and created_by config_option :user_model, 'UserProxy' # Transactions that do not specify a location will use the one that's identified by this code config_option :default_location_code, 'DEFAULT' config_option :default_bank_account_code, 'DEFAULT' # Do freshly created SKUs default to being backorderable? config_option :skus_backorder_default, true # The code for a Sku that represents tax config_option :tax_sku_code, 'TAX' # Code for a Sku that represents shipping charges config_option :ship_sku_code, 'SHIP' # Code for a PaymentTerm that will be used as the default for new Customers config_option :customer_terms_code, 'CASH' # Code for a PaymentTerm that will be used as the default for new Vendors config_option :vendor_terms_code, 'CASH' config_option :pricing_provider, Skr::StandardPricingProvider config_option :default_gl_accounts, { # The Accounts Receivable (AR) GL account number to use for freshly created Customers ar: '1200', # The Accounts Payable (AP) GL account number to use for freshly created Vendors ap: '2200', # The Freight GL account number to use for freshly created Vendors freight: '6420', # The Asset GL account number to use for freshly created SKUs asset: '1110', # Clearing account for inventory that's been inventory_receipts_clearing: '2600', # Holding account for funds that are awaiting deposit deposit_holding: '1010' } end class << self @@config = Configuration.new def config @@config end def configure yield(@@config) end end end