lib/document_sequence.rb
# Use the postgresql format string for to_char.
# If there is no digit rule or the digit length is zero or less, use a large set of nines
# so that whatever is passed in will come back as a string of numbers without leading zeroes
# and without truncating the number.
Use the postgresql format string for to_char.
If there is no digit rule or the digit length is zero or less, use a large set of nines
so that whatever is passed in will come back as a string of numbers without leading zeroes
and without truncating the number.
Use the postgresql format string for to_char . If there is no digit rule or the digit length is zero or less use a large set of nines so that whatever is passed in will come back as a string of numbers without leading zeroes and without truncating the number .
def string_format
    return '999999999999999999999999999' if rule['digit_length'].nil? || rule['digit_length'] < 1
    "#{'0' * (rule['digit_length'] - 1)}9"
  end
def string_format return '999999999999999999999999999' if rule [ 'digit_length' ] . nil? || rule [ 'digit_length' ] < 1 "#{'0' * (rule['digit_length'] - 1)}9" end
Use the postgresql format string for to_char.
Use the postgresql format string for to_char .