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

add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list

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