diff options
author | jeff <jeff> | 2008-06-04 18:41:38 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-06-04 18:41:38 +0000 |
commit | e342397f8a0380982bc05673d5a22f5da2cb47f7 (patch) | |
tree | 9b647361d2456711421ba359df1dc00dad705a08 /conf/invoice_html | |
parent | eabcf4dfa43e6b51a433b1bc9ffdb3b393d102cf (diff) |
more voxline invoice formatting
Diffstat (limited to 'conf/invoice_html')
-rw-r--r-- | conf/invoice_html | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/conf/invoice_html b/conf/invoice_html index d619c0a61..f71f99809 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -74,6 +74,12 @@ <tr> <th align="center">Ref</th> <th align="left">Description</th> + <%= ( $unitprices + ? '<th align="left">Unit Price</th>'. + '<th align="left">Quantity</th>' + : '' + ) + %> <th align="right">Amount</th> </tr> <%= @@ -83,11 +89,18 @@ '<tr class="invoice_desc">'. '<td align="center">'. $line->{'ref'}. '</td>'. '<td align="left">'. $line->{'description'}. '</td>'. + ( $unitprices + ? '<td align="left">'. $line->{'unit_amount'}. '</td>'. + '<td align="left">'. $line->{'quantity'}. '</td>' + : '' + ). '<td align="right">'. $line->{'amount'}. '</td>'. '</tr>' ; if ( @{$line->{'ext_description'} } ) { - $OUT .= '<tr class="invoice_extdesc"><td></td><td><table width="100%">'; + $OUT .= '<tr class="invoice_extdesc"><td></td><td'; + $OUT .= $unitprices ? ' colspan=3>' : '>'; + $OUT .= '<table width="100%">'; foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $OUT .= '<tr class="invoice_extdesc">'. @@ -109,7 +122,8 @@ $OUT .= '<tr class="invoice_totaldesc">'. qq(<td style="$style"> </td>). - qq(<td align="left" style="$style">). + qq(<td align="left" style="$style"). + ( $unitprices ? ' colspan=3>' : '>' ). $line->{'total_item'}. '</td>'. qq(<td align="right" style="$style">). $line->{'total_amount'}. '</td>'. |