Sha256: 7d065feffcb1783f7a01b57e99196b215594133e04042450e0c8ec27c922918c

Contents?: true

Size: 463 Bytes

Versions: 8

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require_relative 'item'
require_relative 'ledger_class'

module LedgerSync
  module Ledgers
    module NetSuite
      class InvoiceLineItem < NetSuite::Resource
        references_one :item, to: Item
        references_one :ledger_class, to: LedgerClass
        attribute :amount, type: Type::Integer
        attribute :description, type: Type::String

        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/invoice_line_item.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/resources/invoice_line_item.rb