% my $s = 0;
% if ( $payby{'BILL'} && $curuser->access_right('Post payment') ) {
<% $s++ ? ' | ' : '' %>
- <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_pay.cgi?popup=1;payby=BILL;custnum=<% $custnum %>', 392, 336, 'cust_pay_popup' ), CAPTION, 'Enter check payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter check payment</A>
+ <% include('/elements/popup_link-cust_main.html',
+ 'label' => 'Enter check payment',
+ 'action' => "${p}edit/cust_pay.cgi?popup=1;payby=BILL",
+ 'cust_main' => $cust_main,
+ 'actionlabel' => 'Enter check payment',
+ 'width' => 392,
+ #default# 'height' => 336,
+ )
+ %>
% }
% if ( $payby{'CASH'} && $curuser->access_right('Post payment') ) {
<% $s++ ? ' | ' : '' %>
- <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_pay.cgi?popup=1;payby=CASH;custnum=<% $custnum %>', 392, 336, 'cust_pay_popup' ), CAPTION, 'Enter cash payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter cash payment</A>
+ <% include('/elements/popup_link-cust_main.html',
+ 'label' => 'Enter cash payment',
+ 'action' => "${p}edit/cust_pay.cgi?popup=1;payby=CASH",
+ 'cust_main' => $cust_main,
+ 'actionlabel' => 'Enter cash payment',
+ 'width' => 392,
+ #default# 'height' => 336,
+ )
+ %>
% }
% if ( $payby{'WEST'} && $curuser->access_right('Post payment') ) {
<BR>
% if ( $curuser->access_right('Post credit') ) {
- <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_credit.cgi?<% $custnum %>', 392, 336, 'cust_credit_popup' ), CAPTION, 'Enter credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter credit</A>
+ <% include('/elements/popup_link-cust_main.html',
+ 'label' => 'Enter credit',
+ 'action' => "${p}edit/cust_credit.cgi",
+ 'cust_main' => $cust_main,
+ 'actionlabel' => 'Enter credit',
+ 'width' => 392,
+ #default# 'height' => 336,
+ )
+ %>
<BR>
% }
% my $payinfo;
% if ( $payby eq 'CARD' ) {
% $payinfo = $cust_pay->paymask;
-% } elsif ( $payby eq 'CHEK' && $cust_pay->payinfo =~ /^(\d+)\@(\d+)$/ ) {
-% $payinfo = "ABA $2, Acct# $1";
+% } elsif ( $payby eq 'CHEK' ) {
+% my( $account, $aba ) = split('@', $cust_pay->paymask );
+% $payinfo = "ABA $aba, Acct #$account";
% } else {
% $payinfo = $cust_pay->payinfo;
% }
% $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
% $post = '</FONT></B>';
% if ( $curuser->access_right('Apply payment') ) {
-% $apply = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_bill_pay.cgi?!.
-% $cust_pay->paynum.
-% qq!', 392, 336, 'cust_bill_pay_popup' ), CAPTION, 'Apply payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+% $apply = ' ('. include( '/elements/popup_link.html',
+% 'label' => 'apply',
+% 'action' => "${p}edit/cust_bill_pay.cgi?".
+% $cust_pay->paynum,
+% 'actionlabel' => 'Apply payment',
+% 'width' => 392,
+% #default# 'height' => 336,
+% ).
+% ')';
% }
% } elsif ( scalar(@cust_bill_pay) == 1
% && scalar(@cust_pay_refund) == 0
% '<B><FONT COLOR="#FF0000">$'.
% $cust_pay->unapplied. ' unapplied</FONT></B>';
% if ( $curuser->access_right('Apply payment') ) {
-% $desc .= qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_bill_pay.cgi?!.
-% $cust_pay->paynum.
-% qq!', 392, 336, 'cust_bill_pay_popup' ), CAPTION, 'Apply payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+% $desc = ' ('. include( '/elements/popup_link.html',
+% 'label' => 'apply',
+% 'action' => "${p}edit/cust_bill_pay.cgi?".
+% $cust_pay->paynum,
+% 'actionlabel' => 'Apply payment',
+% 'width' => 392,
+% #default# 'height' => 336,
+% ).
+% ')';
% }
% $desc .= '<BR>';
% }
% }
%
-% my $view = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}view/cust_pay.html?link=popup;paynum=!.
-% $cust_pay->paynum.
-% qq!', 540, 336, 'view_cust_pay_popup' ), CAPTION, 'Payment Receipt', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">view receipt</A>)!;
+% my $view =
+% ' ('. include('/elements/popup_link.html',
+% 'label' => 'view receipt',
+% 'action' => "${p}view/cust_pay.html?link=popup;paynum=".
+% $cust_pay->paynum,
+% 'actionlabel' => 'Payment Receipt',
+% ).
+% ')';
%
% my $refund = '';
% my $refund_days = $conf->config('card_refund-days') || 120;
% $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
% $post = '</FONT></B>';
% if ( $curuser->access_right('Apply credit') ) {
-% $apply = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_credit_bill.cgi?!.
-% $cust_credit->crednum.
-% qq!', 392, 336, 'cust_credit_bill_popup' ), CAPTION, 'Apply credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+% $apply = ' ('. include( '/elements/popup_link.html',
+% 'label' => 'apply',
+% 'action' => "${p}edit/cust_credit_bill.cgi?".
+% $cust_credit->crednum,
+% 'actionlabel' => 'Apply credit',
+% 'width' => 392,
+% #default# 'height' => 336,
+% ).
+% ')';
% }
% } elsif ( scalar(@cust_credit_bill) == 1
% && scalar(@cust_credit_refund) == 0
% $desc .= ' <B><FONT COLOR="#FF0000">$'.
% $cust_credit->credited. ' unapplied</FONT></B>';
% if ( $curuser->access_right('Apply credit') ) {
-% $desc .= qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_credit_bill.cgi?!.
-% $cust_credit->crednum.
-% qq!', 392, 336, 'cust_credit_bill_popup' ), CAPTION, 'Apply credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+% $desc = ' ('. include( '/elements/popup_link.html',
+% 'label' => 'apply',
+% 'action' => "${p}edit/cust_credit_bill.cgi?".
+% $cust_credit->crednum,
+% 'actionlabel' => 'Apply credit',
+% 'width' => 392,
+% #default# 'height' => 336,
+% ).
+% ')';
% }
% $desc .= '<BR>';
% }