Use Estonian reference number format instead of ISO 11649

This commit is contained in:
Artur Beljajev 2018-10-01 13:43:50 +03:00
parent aa6e8f8a93
commit 5738c17731
25 changed files with 244 additions and 47 deletions

View file

@ -0,0 +1,10 @@
module Billing
class ReferenceNo
REGEXP = /\A\d{2,20}\z/
def self.generate
base = Base.generate
"#{base}#{base.check_digit}"
end
end
end