mirror of
				https://git.coop/cotech/fund.git
				synced 2025-11-04 06:06:30 +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:
		@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user