Class: Effective::QbReceiptItem

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/qb_receipt_item.rb

Instance Method Summary collapse

Instance Method Details

#order_item_qb_nameObject



21
22
23
# File 'app/models/effective/qb_receipt_item.rb', line 21

def order_item_qb_name
  item_id || order_item.purchasable.try(:qb_item_id) || order_item.purchasable.try(:qb_item_name)
end

#to_sObject



17
18
19
# File 'app/models/effective/qb_receipt_item.rb', line 17

def to_s
  item_id.presence || 'New Qb Receipt Item'
end