Adapt the invoice (PDF) template to show the task invoice comments

This commit is contained in:
Paul van Tilburg 2011-12-02 22:21:53 +01:00
parent f40b429d10
commit 351753b422
1 changed files with 3 additions and 3 deletions

View File

@ -91,11 +91,11 @@
\begin{ihtable}
<% subtotal = 0.0
@tasks.each do |task, line|
if line[0].nil? and line[1].nil?
%> \ifcitem{<%= task %>}%
if line[2].nil?
%> \ifcitem{<%= task.comment_or_name %>}%
{<%= number_with_precision(line[2]) %>}<%
else
%> \ihitem{<%= task %>}%
%> \ihitem{<%= task.comment_or_name %>}%
{<%= number_with_precision(line[0]) %>}{<%= number_with_precision(line[1]) %>}%
{<%= number_with_precision(line[2]) %>}<%
end