update commitssion
This commit is contained in:
@@ -10,7 +10,7 @@ class Commission < ApplicationRecord
|
||||
|
||||
# validations
|
||||
validates_presence_of :name, :commission_type, :amount
|
||||
|
||||
scope :active, -> {where(is_active: true)}
|
||||
private
|
||||
def generate_custom_id
|
||||
self.commission_id = SeedGenerator.generate_id(self.class.name, 'COM')
|
||||
|
||||
Reference in New Issue
Block a user