diff options
author | jeff <jeff> | 2008-06-23 15:37:15 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-06-23 15:37:15 +0000 |
commit | a8be11120336b0f1a8565f4abe4758f8211e1f5a (patch) | |
tree | 9be5c591e839d55c3c04cf30c57749dac3325dc6 | |
parent | b57b46f7a4743346799dae9ae680152829889fc0 (diff) |
invoice service address modifications
-rw-r--r-- | FS/FS/cust_bill.pm | 4 | ||||
-rw-r--r-- | conf/invoice_html | 16 | ||||
-rw-r--r-- | conf/invoice_latex | 2 |
3 files changed, 20 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index c23e85626..7b05cadfa 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1853,16 +1853,18 @@ sub print_generic { 'unitprices' => $conf->exists('invoice-unitprice'), ); + my $countrydefault = $conf->config('countrydefault') || 'US'; my $prefix = $cust_main->has_ship_address ? 'ship_' : ''; foreach ( qw( contact company address1 address2 city state zip country fax) ){ my $method = $prefix.$_; $invoice_data{"ship_$_"} = _latex_escape($cust_main->$method); } + $invoice_data{'ship_country'} = '' + if ( $invoice_data{'ship_country'} eq $countrydefault ); $invoice_data{'cid'} = $params{'cid'} if $params{'cid'}; - my $countrydefault = $conf->config('countrydefault') || 'US'; if ( $cust_main->country eq $countrydefault ) { $invoice_data{'country'} = ''; } else { diff --git a/conf/invoice_html b/conf/invoice_html index e2f16640d..0e7021e3b 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -60,6 +60,22 @@ ) %> </td> + <%= $ship_enable ? ('<td align="left">'. + join('<BR>',grep length($_), '<b>Service Address</b>', + $ship_company, + $ship_address1, + $ship_address2, + "$ship_city, $ship_state $ship_zip", + $ship_country, + ' ', + ' ', + ). + ($agent_custid ? "<b>ID:</b> $agent_custid<BR>" : ''). + ($ship_fax ? "<b>Fax:</b> $ship_fax<BR>" : ''). + '</td><tr><td></td><td></td>' + ) + : '' + %> <td align="right"> Terms: <%= $terms %><BR> <%= $po_line %> diff --git a/conf/invoice_latex b/conf/invoice_latex index 693d66e85..6bfc41d5a 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -204,7 +204,6 @@ \hfill
\makebox{
\begin{minipage}[t]{6.4cm}
-\begin{flushright}
[@--
if ($ship_enable) {
$OUT .= '\textbf{Service Address}\\\\';
@@ -221,6 +220,7 @@ $OUT .= '';
}
--@]
+\begin{flushright}
Terms: [@-- $terms --@]\\
[@-- $po_line --@]\\
\end{flushright}
|