app/models/unidom/shipment/shipment_receipt.rb in unidom-shipment-0.7.1 vs app/models/unidom/shipment/shipment_receipt.rb in unidom-shipment-0.7.2
- old
+ new
@@ -8,11 +8,11 @@
self.table_name = 'unidom_shipment_receipts'
include Unidom::Common::Concerns::ModelExtension
- validates :accepted_quantity, presence: true, numericality: { greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
- validates :rejected_quantity, presence: true, numericality: { greater_than_or_equal_to: 0, less_than: 1_000_000_000 }
+ validates :accepted_quantity, presence: true, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 }
+ validates :rejected_quantity, presence: true, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 1_000_000_000 }
belongs_to :package, class_name: 'Unidom::Shipment::ShipmentPackage'
belongs_to :shipped, polymorphic: true
belongs_to :store_item, polymorphic: true