update commission and seed for font

This commit is contained in:
Aung Myo
2017-11-07 10:31:10 +06:30
parent 3aacc63b82
commit b48625e25e
21 changed files with 312 additions and 23 deletions

View File

@@ -9,7 +9,7 @@ class Commission < ApplicationRecord
has_many :product_commissions
# validations
validates_presence_of :commission_type, :amount
validates_presence_of :name, :commission_type, :amount
private
def generate_custom_id