seed generator
This commit is contained in:
@@ -22,13 +22,13 @@ class SeedGenerator < ApplicationRecord
|
||||
new_receipt_no = seed.next
|
||||
seed.save
|
||||
else
|
||||
new_receipt_no = seed.next
|
||||
current_no = seed.next
|
||||
seed.next = seed.next
|
||||
seed.current = new_receipt_no
|
||||
seed.current = current_no
|
||||
seed.save
|
||||
end
|
||||
|
||||
return seed.current
|
||||
return seed.current
|
||||
end
|
||||
|
||||
# Generate for 4 digit Code
|
||||
|
||||
Reference in New Issue
Block a user