Added (dummy) invoice numbering for now.

This commit is contained in:
Paul van Tilburg 2011-11-03 11:00:52 +01:00
parent 9b8f2368fd
commit 4819a50a6e
1 changed files with 5 additions and 1 deletions

View File

@ -415,18 +415,22 @@ module StopTime::Views
h2 "List of invoices"
cmonth = Time.now
ccnt = 1
@customers.each do |month, custs|
unless month == cmonth
h3 { month.to_formatted_s(:month_and_year) }
cmonth = month
ccnt = 1
end
ol do
custs.each do |cust|
li do
span { cust.name }
a "view", :href => R(CustomersNInvoicesX,
cust.id, month.to_formatted_s(:month_code))
cust.id, month.to_formatted_s(:month_code) +
"%02d" % ccnt)
end
ccnt = ccnt + 1
end
end
end