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:
Chris Lowis 2022-05-06 10:02:23 +01:00
parent 526b9ef436
commit 200a7aab90
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ United Kingdom
</div>
<p class="date">
05 May 2022
03 May 2022
</p>
<h1>Invoice: CoTech Fund Contribution</h1>

View File

@ -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