mirror of
https://git.coop/cotech/fund.git
synced 2024-12-18 01: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>
|
||||
|
||||
<p class="date">
|
||||
05 May 2022
|
||||
03 May 2022
|
||||
</p>
|
||||
|
||||
<h1>Invoice: CoTech Fund Contribution</h1>
|
||||
|
@ -1,8 +1,8 @@
|
||||
require 'csv'
|
||||
require 'erb'
|
||||
require 'date'
|
||||
|
||||
FIRST_INVOICE_NUMBER = 50
|
||||
INVOICE_DATE = '03 May 2022'
|
||||
|
||||
output_dir = File.join(File.dirname(__FILE__), "..", "invoices", "sent", "2022")
|
||||
|
||||
@ -20,7 +20,7 @@ class Invoice
|
||||
end
|
||||
|
||||
def date
|
||||
Date.today.strftime('%d %B %Y')
|
||||
INVOICE_DATE
|
||||
end
|
||||
|
||||
def number
|
||||
|
Loading…
Reference in New Issue
Block a user