disable cable and oqs qty can 0

This commit is contained in:
Yan
2017-07-04 18:56:52 +06:30
parent 6a1824e410
commit d51b1a0b9e
9 changed files with 25 additions and 23 deletions

View File

@@ -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