X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpayment.html;fp=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpayment.html;h=4ec9271efbbbb5dfc77c13eeda222b4405324d6d;hb=1564f23d66008e6167af8b517dce364127d34c3c;hp=93792071019e157b32226b4849171b3fa16e1a3e;hpb=19d8baa9a52d0c40b909d5323f59237f0ad557ef;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html index 937920710..4ec9271ef 100644 --- a/httemplate/view/cust_main/payment_history/payment.html +++ b/httemplate/view/cust_main/payment_history/payment.html @@ -1,5 +1,6 @@ -<% $payment %> -<% "$info$desc$view$apply$refund$void$delete$unapply" %> +<% $payment. ' '. $info. $desc. + $view. $change_pkg. $apply. $refund. $void. $delete. $unapply +%> <%init> my( $cust_pay, %opt ) = @_; @@ -143,6 +144,19 @@ my $view = ). ')'; +my $change_pkg = ''; +if ( $apply && $opt{'pkg-balances'} && $cust_pay->pkgnum ) { + $change_pkg = + ' ('. include('/elements/popup_link.html', + 'label' => emt('change package'), + 'action' => "${p}edit/cust_pay-pkgnum.html?paynum=". + $cust_pay->paynum, + 'actionlabel' => emt('Change payment package'), + 'width' => 763, + ). + ')'; +} + my $refund = ''; my $refund_days = $opt{'card_refund-days'} || 120; my $refund_right = '';