update origamitable,room query

This commit is contained in:
Aung Myo
2017-06-05 15:07:44 +06:30
parent e309b35669
commit 68e51c98c3
9 changed files with 75 additions and 49 deletions

View File

@@ -14,9 +14,9 @@ class SeedGenerator < ApplicationRecord
seed.current = current_no
seed.save
end
padding_len = 16 - prefix.len
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
def self.new_receipt_no