From e342397f8a0380982bc05673d5a22f5da2cb47f7 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 4 Jun 2008 18:41:38 +0000 Subject: [PATCH] more voxline invoice formatting --- conf/invoice_html | 18 ++++++++++++++++-- conf/invoice_latex | 8 ++++---- 2 files changed, 20 insertions(+), 6 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 @@ 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 -- 2.20.1
 ). + qq(' : '>' ). $line->{'total_item'}. '). $line->{'total_amount'}. '