Sha256: 9d583c9631f4905dac1df52f4e3bb4b3c00fed806be82e6a5e5ccf3b978c176e
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# frozen_string_literal: true require_relative 'currency' module LedgerSync module NetSuite class Account < NetSuite::Resource TYPES = { 'bank' => 'Bank', 'other_current_assets' => 'OthCurrAsset', 'fixed_asset' => 'FixedAsset', 'other_asset' => 'OthAsset', 'accounts_receivable' => 'AcctRec', 'equity' => 'Equity', 'expense' => 'Expense', 'other_expense' => 'OthExpense', 'cost_of_goods_sold' => 'COGS', 'accounts_payable' => 'AcctPay', 'credit_card' => 'CredCard', 'long_term_liability' => 'LongTermLiab', 'other_current_liability' => 'OthCurrLiab', 'income' => 'Income', 'other_income' => 'OthIncome', 'deferred_expense' => 'DeferExpense', 'unbilled_recievable' => 'UnbilledRec', 'deferred_revenue' => 'DeferRevenue', 'non_posting' => 'NonPosting' }.freeze attribute :name, type: Type::String attribute :classification, type: Type::String attribute :account_type, type: Type::StringFromSet.new({ values: TYPES.keys }) attribute :account_sub_type, type: Type::String attribute :number, type: Type::String attribute :description, type: Type::String attribute :active, type: Type::Boolean references_one :currency, to: Currency end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-netsuite-0.3.6 | lib/ledger_sync/netsuite/resources/account.rb |