Sha256: e55d89dd46793ae042f3e46920e5f9ad29852b755ef59b544ecb0340281dbdb9
Contents?: true
Size: 945 Bytes
Versions: 24
Compression:
Stored size: 945 Bytes
Contents
module Comee module Core class SalesOrderItem < ApplicationRecord belongs_to :sales_order belongs_to :customer_order_item belongs_to :product belongs_to :unit belongs_to :source, class_name: "Comee::Core::FulfillmentCenter", optional: true # has_many :warehouse_shipment_items has_many :shipment_items validates :customer_item_no, :delivery_date, presence: true validates :quantity, :price, presence: true, numericality: {greater_than: 0} validates :quantity_delivered, numericality: {greater_than_or_equal_to: 0} def self.ransackable_attributes(_auth_object = nil) %w[ customer_item_no customer_order_item_id delivery_date eb_number handover_date lead_time po_reference product_id sales_order_id source_id unit_id ] end end end end
Version data entries
24 entries across 24 versions & 1 rubygems