From ab5936584991da1678d1e82b66d6e68569d904e0 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Thu, 10 Nov 2011 15:23:24 +0100 Subject: [PATCH] Fixed bug for creating links to invoices. --- stoptime.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index 1eb55fa..2ccdddf 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1003,7 +1003,8 @@ module StopTime::Views tr do td do a invoice.number, - :href => R(CustomersNInvoicesX, @customer.id, invoice.number) + :href => R(CustomersNInvoicesX, + invoice.customer.id, invoice.number) end td { invoice.created_at.to_formatted_s(:date_only) } td { _format_period(invoice.period) }