disable cable and oqs qty can 0
This commit is contained in:
@@ -9,7 +9,7 @@ class OrderItem < ApplicationRecord
|
||||
|
||||
#Validation
|
||||
validates_presence_of :item_code, :item_name, :qty
|
||||
validates :qty, numericality: { :greater_than => 0 }
|
||||
# validates :qty, numericality: { :greater_than => 0 }
|
||||
validates_associated :order
|
||||
|
||||
#This Method - handle how items is added into order
|
||||
|
||||
Reference in New Issue
Block a user