recus
This commit is contained in:
parent
b10558ae79
commit
72a0945751
@ -19,7 +19,7 @@ class Admin::SheetsController < ApplicationController
|
|||||||
|
|
||||||
def recus
|
def recus
|
||||||
date = Date.today
|
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])
|
@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])
|
@donates = Donate.joins(:person).order("people.surname").find(:all, :conditions => ["paid_at >= ? and paid_at <= ?",date ,date.end_of_year])
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
-price_list = {}
|
-price_list = {}
|
||||||
|
|
||||||
-i = 0
|
-i = 4
|
||||||
-@sheet_years.each do |sheet_year|
|
-@sheet_years.each do |sheet_year|
|
||||||
-price_list[sheet_year.amount.to_s] = true
|
-price_list[sheet_year.amount.to_s] = true
|
||||||
-i += 1
|
-i += 1
|
||||||
@ -15,7 +15,7 @@
|
|||||||
%td{:style => "text-align:right;"}
|
%td{:style => "text-align:right;"}
|
||||||
Numéro d'ordre du reçu
|
Numéro d'ordre du reçu
|
||||||
%br
|
%br
|
||||||
="2015/"+("%04d" % i).to_s
|
="2016/"+("%04d" % i).to_s
|
||||||
|
|
||||||
%h2{:style => "text-align:center;"}
|
%h2{:style => "text-align:center;"}
|
||||||
Reçu dons aux œuvres
|
Reçu dons aux œuvres
|
||||||
@ -172,7 +172,7 @@
|
|||||||
%td{:style => "text-align:right;"}
|
%td{:style => "text-align:right;"}
|
||||||
Numéro d'ordre du reçu
|
Numéro d'ordre du reçu
|
||||||
%br
|
%br
|
||||||
="2015/"+("%04d" % i).to_s
|
="2016/"+("%04d" % i).to_s
|
||||||
|
|
||||||
%h2{:style => "text-align:center;"}
|
%h2{:style => "text-align:center;"}
|
||||||
Reçu dons aux œuvres
|
Reçu dons aux œuvres
|
||||||
|
Loading…
x
Reference in New Issue
Block a user