Do not generate ticket number if already exists.
This commit is contained in:
parent
bf56a3a17e
commit
659329f0c8
1 changed files with 2 additions and 0 deletions
|
@ -402,6 +402,8 @@ class Ticket < ApplicationModel
|
|||
private
|
||||
|
||||
def number_generate
|
||||
return if self.number
|
||||
return if !self.number.empty?
|
||||
|
||||
# generate number
|
||||
(1..25_000).each do |i|
|
||||
|
|
Loading…
Reference in a new issue