Sha256: 52bd12aa02176a7d81d55d412ea54c35af8feafcd646c346175400a754abb922

Contents?: true

Size: 693 Bytes

Versions: 8

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'currency'
require_relative 'department'
require_relative 'deposit_line_item'

module LedgerSync
  module Ledgers
    module NetSuite
      class Deposit < NetSuite::Resource
        attribute :memo, type: Type::String
        attribute :transaction_date, type: Type::Date
        attribute :exchange_rate, type: Type::Float

        references_one :account, to: Account
        references_one :department, to: Department
        references_one :currency, to: Currency

        references_many :line_items, to: DepositLineItem

        def name
          "Deposit: #{currency}"
        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.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/resources/deposit.rb