Sha256: 0a331567f3ce246fa0031ff435381360af6931f7a4e830fd70fb2fc27d9aa7f0
Contents?: true
Size: 596 Bytes
Versions: 10
Compression:
Stored size: 596 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 :item_statuses 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} end end end
Version data entries
10 entries across 10 versions & 1 rubygems