Sha256: 78b2d4ef2dd71baf39d20a3234228a55d8233320e91c141b328ee59b5c1d0d95
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
Contents
# frozen_string_literal: true require_relative 'currency' module LedgerSync module Ledgers 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 end
Version data entries
3 entries across 3 versions & 1 rubygems