postfix length 16 to 12 for limit 16
This commit is contained in:
@@ -14,9 +14,9 @@ class SeedGenerator < ApplicationRecord
|
|||||||
seed.current = current_no
|
seed.current = current_no
|
||||||
seed.save
|
seed.save
|
||||||
end
|
end
|
||||||
padding_len = 16 - prefix.length
|
padding_len = 12 - prefix.length
|
||||||
|
|
||||||
return prefix +"-"+ seed.current.to_s.to_s.rjust((16-prefix.length)+1,'0')
|
return prefix +"-"+ seed.current.to_s.to_s.rjust((12-prefix.length)+1,'0')
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.new_receipt_no
|
def self.new_receipt_no
|
||||||
|
|||||||
Reference in New Issue
Block a user