X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=db30d3ecc8d50719ddceff8991ae55e391810248;hb=1eb6aa29f466dd7f8218b6a451594b28bb46b0b6;hp=951725531bf950411f9950c9794c6f26ae8ec893;hpb=f9938915b0df2609f41c24d761d607595d5d0a34;p=freeside.git diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 951725531..db30d3ecc 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -4,56 +4,56 @@ % 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') +% ) +% { % 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