module Comee module Core class StockTransferRequestItem < ApplicationRecord belongs_to :sales_order_item belongs_to :stock_transfer_request validates :quantity, presence: true def product sales_order_item.product end 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 def self.ransackable_associations(_auth_object = nil) %w[sales_order_item stock_transfer_request] end end end end