Sha256: feb158b474e839b01f009ab7c59430780eaa30de950e87d8c9138557bf69a21a

Contents?: true

Size: 582 Bytes

Versions: 8

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'customer'
require_relative 'ledger_class'
require_relative 'vendor'

module LedgerSync
  module Ledgers
    module NetSuite
      class DepositLineItem < NetSuite::Resource
        references_one :account, to: Account
        references_one :ledger_class, to: LedgerClass
        attribute :amount, type: Type::Integer
        attribute :description, type: Type::String

        references_one :entity, to: [Customer, Vendor]

        def name
          description
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/resources/deposit_line_item.rb