mirror of
https://git.coop/cotech/fund.git
synced 2024-12-18 09:33:05 +00:00
Hardcode invoice date
To stop it changing for all the invoices when I update a single member count or address.
This commit is contained in:
parent
526b9ef436
commit
200a7aab90
@ -59,7 +59,7 @@ United Kingdom
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="date">
|
<p class="date">
|
||||||
05 May 2022
|
03 May 2022
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h1>Invoice: CoTech Fund Contribution</h1>
|
<h1>Invoice: CoTech Fund Contribution</h1>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
require 'csv'
|
require 'csv'
|
||||||
require 'erb'
|
require 'erb'
|
||||||
require 'date'
|
|
||||||
|
|
||||||
FIRST_INVOICE_NUMBER = 50
|
FIRST_INVOICE_NUMBER = 50
|
||||||
|
INVOICE_DATE = '03 May 2022'
|
||||||
|
|
||||||
output_dir = File.join(File.dirname(__FILE__), "..", "invoices", "sent", "2022")
|
output_dir = File.join(File.dirname(__FILE__), "..", "invoices", "sent", "2022")
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ class Invoice
|
|||||||
end
|
end
|
||||||
|
|
||||||
def date
|
def date
|
||||||
Date.today.strftime('%d %B %Y')
|
INVOICE_DATE
|
||||||
end
|
end
|
||||||
|
|
||||||
def number
|
def number
|
||||||
|
Loading…
Reference in New Issue
Block a user