Sha256: d476c1a9ec2d146e81b185963619bb7ae499721fc8b00584b199791cd9850e6a

Contents?: true

Size: 376 Bytes

Versions: 13

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

require_relative 'item'
require_relative 'ledger_class'

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb