Sha256: f315b6a83d62eaf4f5914204b31bc67728f1092aceac9cec4b06419d59b0a050

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require_relative 'item'
require_relative 'ledger_class'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class SalesItemLineDetail < QuickBooksOnline::Resource
        references_one :Item, to: Item
        references_one :Class, to: LedgerClass

        def name
          "#{self.Item.try(:name)} #{self.Class.try(:name)}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/resources/sales_item_line_detail.rb