Sha256: 2cd30d4aa90ac3b4f5d60b1d248bffb1d6b083e8fef8278809c4e4bc68b5f236

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

module AplConstants

  #BU
  module BU
    WSR        = 'wsr'
    FKI        = 'fki'
    FKMP       = 'fkmp'
    EKL        = 'ekl'
    INFRA      = 'infra'
    NEXT_WSR   = 'next_wsr'
    NEXT_EKL   = 'next_ekl'
    NEXT_FKMP  = 'next_fkmp'
    INVALID_BU = 'invalid_bu'
  end

  #OTHER CONSTANTS
  TENANT = 'X_BU_ID'

  module Accruals
    module Type
      COST    = ['cost_accrual','cost_reversal_accrual']
      REVENUE = ['revenue_accrual','revenue_reversal_accrual']
    end

    module ItemType
      SERVICE = 'ServiceAccrualItem'
      TAX     = 'TaxAccrualItem'
    end

    module ItemTypeInRequest
      SERVICE = 'Service'
      TAX     = 'Tax'
    end
  end

  module Invoice
    INVOICE   = 'invoice'

    module Type
      COST_INVOICE        = 'cost_invoice'
      REVENUE_INVOICE     = 'revenue_invoice'
      DUMMY_INVOICE       = 'dummy_invoice'
      VENDOR_CREDIT_NOTE  = 'vendor_credit_note'
      VENDOR_DEBIT_NOTE   = 'vendor_debit_note'
      REVENUE_DEBIT_NOTE  = 'revenue_debit_note'
      REVENUE_CREDIT_NOTE = 'revenue_credit_note'
    end

    module ItemType
      PRODUCT        = 'ProductInvoiceItem'
      FEATURE        = 'FeatureInvoiceItem'
      SERVICE        = 'ServiceInvoiceItem'
      TAX            = 'TaxInvoiceItem'
      DISCOUNT       = 'DiscountInvoiceItem'
      MISCELLANEOUS  = 'MiscellaneousInvoiceItem'
    end

    module ItemTypeInRequest
      SERVICE    = 'Service'
      TAX        = 'Tax'
    end
  end

  module GL
    ACCOUNTING_TRANSACTION = 'accounting_transaction'

    module Accounts
      LEDGER_ACCOUNT            = 'ledger_account'
      NATURAL_ACCOUNT           = 'natural_account'
      DEPARTMENT                = 'department'
      LOCATION                  = 'location'
      PRODUCT_CATEGORY          = 'product_category'
    end
  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
apl-library-0.0.90 lib/apl-library/apl_constants.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/lib/apl-library/apl_constants.rb