Rename Views#invoice to invoice_form for consistency

This commit is contained in:
Paul van Tilburg 2011-12-10 21:08:48 +01:00
parent cb0b014640
commit 3570cbb3f4
1 changed files with 2 additions and 2 deletions

View File

@ -846,7 +846,7 @@ module StopTime::Controllers
if @format == "html"
@input = @invoice.attributes
render :invoice
render :invoice_form
elsif @format == "tex"
tex_file = PUBLIC_DIR + "invoices/#{@number}.tex"
_generate_invoice_tex(@number) unless tex_file.exist?
@ -1459,7 +1459,7 @@ module StopTime::Views
# A view displaying the information (billed tasks and time) of an
# invoice (Models::Invoice) that also allows for updating the "+paid+"
# property.
def invoice
def invoice_form
h2 do
span "Invoice for "
a @customer.name, :href => R(CustomersN, @customer.id)