seed generator
This commit is contained in:
@@ -22,9 +22,9 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user