From: jeff Date: Wed, 4 Jun 2008 18:41:38 +0000 (+0000) Subject: more voxline invoice formatting X-Git-Tag: freeside_1_7_4rc1~315 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=e342397f8a0380982bc05673d5a22f5da2cb47f7;p=freeside.git more voxline invoice formatting --- 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 @@ Ref Description + <%= ( $unitprices + ? 'Unit Price'. + 'Quantity' + : '' + ) + %> Amount <%= @@ -83,11 +89,18 @@ ''. ''. $line->{'ref'}. ''. ''. $line->{'description'}. ''. + ( $unitprices + ? ''. $line->{'unit_amount'}. ''. + ''. $line->{'quantity'}. '' + : '' + ). ''. $line->{'amount'}. ''. '' ; if ( @{$line->{'ext_description'} } ) { - $OUT .= ''; + $OUT .= '' : '>'; + $OUT .= '
'; foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $OUT .= ''. @@ -109,7 +122,8 @@ $OUT .= ''. qq(). - qq('. qq('. diff --git a/conf/invoice_latex b/conf/invoice_latex index 4ea3fe643..2a8c4bdd5 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -231,8 +231,8 @@ Terms: [@-- $terms --@]\\ \makebox[2.0cm][l]{}& \makebox[2.0cm][l]{}& \makebox[2.0cm][l]{}& -\makebox[2.0cm][l]{\textbf{[@-- !$unitprices ? '~~Unit Price' : '' --@]}}& -\makebox[2.0cm]{\textbf{[@-- !$unitprices ? '~Quantity' : '' --@]}}& +\makebox[2.0cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}& +\makebox[2.0cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}& \makebox[2.0cm][r]{\textbf{Amount}} \\ % \hline @@ -245,8 +245,8 @@ Terms: [@-- $terms --@]\\ \makebox[2.0cm][l]{}& \makebox[2.0cm][l]{}& \makebox[2.0cm][l]{}& -\makebox[2.0cm][l]{\textbf{[@-- !$unitprices ? '~~Unit Price' : '' --@]}}& -\makebox[2.0cm]{\textbf{[@-- !$unitprices ? '~Quantity' : '' --@]}}& +\makebox[2.0cm][l]{\textbf{[@-- $unitprices ? '~~Unit Price' : '' --@]}}& +\makebox[2.0cm]{\textbf{[@-- $unitprices ? '~Quantity' : '' --@]}}& \makebox[2.0cm][r]{\textbf{Amount}} \\ \hline \endhead
 ). + qq(' : '>' ). $line->{'total_item'}. '). $line->{'total_amount'}. '