reçus
This commit is contained in:
parent
d8f2e5bc3f
commit
2b212ea67d
@ -19,7 +19,7 @@ class Admin::SheetsController < ApplicationController
|
||||
|
||||
def recus
|
||||
date = Date.today
|
||||
date = DateTime.new(2016, 1, 1).beginning_of_year
|
||||
date = DateTime.new(2017, 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])
|
||||
|
@ -1,6 +1,6 @@
|
||||
-price_list = {}
|
||||
|
||||
-i = 4
|
||||
-i = 2
|
||||
-@sheet_years.each do |sheet_year|
|
||||
-price_list[sheet_year.amount.to_s] = true
|
||||
-i += 1
|
||||
@ -11,11 +11,11 @@
|
||||
%em
|
||||
Cerfa
|
||||
%br
|
||||
N° 11580*01
|
||||
N° 11580*03
|
||||
%td{:style => "text-align:right;"}
|
||||
Numéro d'ordre du reçu
|
||||
%br
|
||||
="2016/"+("%04d" % i).to_s
|
||||
="2017/"+("%04d" % i).to_s
|
||||
|
||||
%h2{:style => "text-align:center;"}
|
||||
Reçu dons aux œuvres
|
||||
@ -150,6 +150,9 @@
|
||||
%br
|
||||
Le
|
||||
=l Date.today
|
||||
%br
|
||||
%br
|
||||
=image_tag "/sign-mcb.jpg", :style => "width:200px;"
|
||||
|
||||
%div{:style =>"page-break-after:always" }
|
||||
|
||||
@ -168,11 +171,11 @@
|
||||
%em
|
||||
Cerfa
|
||||
%br
|
||||
N° 11580*01
|
||||
N° 11580*03
|
||||
%td{:style => "text-align:right;"}
|
||||
Numéro d'ordre du reçu
|
||||
%br
|
||||
="2016/"+("%04d" % i).to_s
|
||||
="2017/"+("%04d" % i).to_s
|
||||
|
||||
%h2{:style => "text-align:center;"}
|
||||
Reçu dons aux œuvres
|
||||
@ -307,5 +310,8 @@
|
||||
%br
|
||||
Le
|
||||
=l Date.today
|
||||
%br
|
||||
%br
|
||||
=image_tag "/sign-mcb.jpg", :style => "width:200px;"
|
||||
|
||||
%div{:style =>"page-break-after:always" }
|
||||
|
BIN
public/sign-mcb.jpg
Normal file
BIN
public/sign-mcb.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
Loading…
x
Reference in New Issue
Block a user