mise à jour numéro adhérent

This commit is contained in:
Nicolas Bally 2014-04-13 14:22:51 +02:00
parent 1b51e7287c
commit 1e70d9e8cf
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class Sheet < ActiveRecord::Base
end
def generate_sheet_number
self.sheet_number = ("%04d" % self.id)+("%04d" % SecureRandom.random_number(99))
self.sheet_number = ("%04d" % self.id)+("%03d" % SecureRandom.random_number(999))
end

View File

@ -7,8 +7,8 @@
.content
%h1
Fiche n°
=@sheet.id
N° adhérent :
=@sheet.sheet_number
Adhérent depuis
=@sheet.first_year
="/"