X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=2673e8239bdb97757ab9c618c68c4a45e26f2f0b;hb=9ecb64360568b205334ae23e1051249cb56491b6;hp=951725531bf950411f9950c9794c6f26ae8ec893;hpb=f9938915b0df2609f41c24d761d607595d5d0a34;p=freeside.git diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 951725531..2673e8239 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -1,59 +1,60 @@ <% include("/elements/header.html",'Invoice View', menubar( - "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", + "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum", )) %> % if ( $cust_bill->owed > 0 -% && ( $payby{'BILL'} || $payby{'CASH'} || $payby{'WEST'} || $payby{'MCRD'} ) -% ) -% { +% && scalar( grep $payby{$_}, qw(BILL CASH WEST MCRD) ) +% && $FS::CurrentUser::CurrentUser->access_right('Post payment') +% && ! $conf->exists('pkg-balances') +% ) +% { % my $s = 0; - Post -% if ( $payby{'BILL'} ) { + Post - - <% $s++ ? ' | ' : '' %> - check -% } -% if ( $payby{'CASH'} ) { +% if ( $payby{'BILL'} ) { + <% $s++ ? ' | ' : '' %> + check +% } - - <% $s++ ? ' | ' : '' %> - cash -% } -% if ( $payby{'WEST'} ) { +% if ( $payby{'CASH'} ) { + <% $s++ ? ' | ' : '' %> + cash +% } - - <% $s++ ? ' | ' : '' %> - Western Union -% } -% if ( $payby{'MCRD'} ) { +% if ( $payby{'WEST'} ) { + <% $s++ ? ' | ' : '' %> + Western Union +% } - - <% $s++ ? ' | ' : '' %> - manual credit card -% } +% if ( $payby{'MCRD'} ) { + <% $s++ ? ' | ' : '' %> + manual credit card +% } + payment against this invoice

- payment against this invoice
% } -Re-print this invoice -% if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) { +% if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) { - | Re-email - this invoice -% } -% if ( $conf->exists('hylafax') && length($cust_bill->cust_main->fax) ) { + Re-print this invoice + +% if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) { + | Re-email this invoice +% } + +% if ( $conf->exists('hylafax') && length($cust_bill->cust_main->fax) ) { + | Re-fax this invoice +% } + +

- | Re-fax - this invoice % } -

% if ( $conf->exists('invoice_latex') ) { View typeset invoice @@ -109,6 +110,7 @@ my $cust_bill = qsearchs({ die "Invoice #$invnum not found!" unless $cust_bill; my $custnum = $cust_bill->custnum; +my $display_custnum = $cust_bill->cust_main->display_custnum; #my $printed = $cust_bill->printed;