Class: Comee::Core::StockTransferRequestItem

Inherits:
ApplicationRecord show all
Defined in:
app/models/comee/core/stock_transfer_request_item.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



17
18
19
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 17

def self.ransackable_associations(_auth_object = nil)
  %w[sales_order_item stock_transfer_request]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



13
14
15
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 13

def self.ransackable_attributes(_auth_object = nil)
  %w[created_at id id_value quantity sales_order_item_id stock_transfer_request_id updated_at]
end

Instance Method Details

#productObject



9
10
11
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 9

def product
  sales_order_item.product
end