Sha256: ceb8b9e6d5c9e63dd96a0f03962fa9fdd9f45d438a448b048eb31c941d59959e

Contents?: true

Size: 642 Bytes

Versions: 15

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

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

module LedgerSync
  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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.7.1 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.6.2 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.6.1 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.6.0 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.5.0 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.4.2 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.6 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.5 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.4 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.3 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.2 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.1 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.3.0 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.2.0 lib/ledger_sync/netsuite/resources/deposit.rb
ledger_sync-netsuite-0.1.1 lib/ledger_sync/netsuite/resources/deposit.rb