This commit is contained in:
Nicolas Bally 2017-01-05 16:41:07 +01:00
parent b10558ae79
commit 72a0945751
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class Admin::SheetsController < ApplicationController
def recus
date = Date.today
date = DateTime.new(2015, 1, 1).beginning_of_year
date = DateTime.new(2016, 1, 1).beginning_of_year
@sheet_years = SheetYear.joins(:person).order("people.surname").find(:all, :conditions => ["paid_at >= ? and paid_at <= ?",date ,date.end_of_year])
@donates = Donate.joins(:person).order("people.surname").find(:all, :conditions => ["paid_at >= ? and paid_at <= ?",date ,date.end_of_year])

View File

@ -1,6 +1,6 @@
-price_list = {}
-i = 0
-i = 4
-@sheet_years.each do |sheet_year|
-price_list[sheet_year.amount.to_s] = true
-i += 1
@ -15,7 +15,7 @@
%td{:style => "text-align:right;"}
Numéro d'ordre du reçu
%br
="2015/"+("%04d" % i).to_s
="2016/"+("%04d" % i).to_s
%h2{:style => "text-align:center;"}
Reçu dons aux œuvres
@ -172,7 +172,7 @@
%td{:style => "text-align:right;"}
Numéro d'ordre du reçu
%br
="2015/"+("%04d" % i).to_s
="2016/"+("%04d" % i).to_s
%h2{:style => "text-align:center;"}
Reçu dons aux œuvres