From f3c4bc88460be7576d81b9ca234b421950f48c01 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 5 Apr 2007 02:04:21 +0000 Subject: per-customer invoice terms override --- httemplate/view/cust_main/billing.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 1f80dc5bc..b73270c6c 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -1,11 +1,3 @@ -% -% my( $cust_main ) = @_; -% my @invoicing_list = $cust_main->invoicing_list; -% my $conf = new FS::Conf; -% my $money_char = $conf->config('money_char') || '$'; -% - - Billing information % # If we can't see the unencrypted card, then bill now is an exercise in frustration %if ( ! $cust_main->is_encrypted($cust_main->payinfo) ) { @@ -179,14 +171,26 @@ Billing information <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || 'no' %> -% if ( $conf->exists('voip-cust_cdr_spools') ) { + + Invoice terms + + <% $cust_main->invoice_terms || 'Default ('. ( $conf->config('invoice_default_terms') || 'Payable upon receipt' ). ')' %> + + +% if ( $conf->exists('voip-cust_cdr_spools') ) { Spool CDRs <% $cust_main->spool_cdr ? 'yes' : 'no' %> % } - +<%init> + +my( $cust_main ) = @_; +my @invoicing_list = $cust_main->invoicing_list; +my $conf = new FS::Conf; +my $money_char = $conf->config('money_char') || '$'; + -- cgit v1.2.1