Class: Workarea::Inventory::TransactionItem

Inherits:
Object
  • Object
show all
Includes:
ApplicationDocument
Defined in:
app/models/workarea/inventory/transaction_item.rb

Instance Method Summary collapse

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

assert_valid_config!, async, disable, enable, inline, #run_callbacks

Methods included from Mongoid::Document

#embedded_children

Instance Method Details

#expired_backorder?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/workarea/inventory/transaction_item.rb', line 14

def expired_backorder?
  !!backordered_until.try(:past?)
end