diff options
Diffstat (limited to 'httemplate/view/cust_main')
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/payment_history/credit.html | 14 | ||||
-rw-r--r-- | httemplate/view/cust_main/payment_history/voided_credit.html | 12 |
3 files changed, 25 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 46abfbb63..d79d84365 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -425,7 +425,7 @@ my %opt = ( 'Apply payment', 'Refund credit card payment', 'Refund Echeck payment', 'Credit card void', 'Echeck void', 'Void payments', 'Unvoid payments', 'Delete payment', 'Unapply payment', - 'Apply credit', 'Delete credit', 'Unapply credit', + 'Apply credit', 'Delete credit', 'Unapply credit', 'Void credit', 'Unvoid credit', 'Delete refund', 'Billing event reports', 'View customer billing events', ) diff --git a/httemplate/view/cust_main/payment_history/credit.html b/httemplate/view/cust_main/payment_history/credit.html index 941180e80..3eed833d3 100644 --- a/httemplate/view/cust_main/payment_history/credit.html +++ b/httemplate/view/cust_main/payment_history/credit.html @@ -1,4 +1,4 @@ -<% $credit. ' '. $reason. $desc. $change_pkg. $apply. $delete. $unapply %> +<% $credit. ' '. $reason. $desc. $change_pkg. $apply. $delete. $unapply. $void %> <%init> my( $cust_credit, %opt ) = @_; @@ -126,6 +126,18 @@ if ( $apply && $opt{'pkg-balances'} && $cust_credit->pkgnum ) { ')'; } +my $void = ''; +$void = ' ('. + include( '/elements/popup_link.html', + 'label' => emt('void'), + 'action' => "${p}misc/void-cust_credit.html?". + $cust_credit->crednum, + 'actionlabel' => emt('Void credit'), + ). + ')' + if $cust_credit->closed !~ /^Y/i + && $opt{'Void credit'}; + my $delete = ''; $delete = areyousure_link("${p}misc/delete-cust_credit.cgi?".$cust_credit->crednum, emt('Are you sure you want to delete this credit?'), diff --git a/httemplate/view/cust_main/payment_history/voided_credit.html b/httemplate/view/cust_main/payment_history/voided_credit.html index 9ff4c1b1b..3515d856d 100644 --- a/httemplate/view/cust_main/payment_history/voided_credit.html +++ b/httemplate/view/cust_main/payment_history/voided_credit.html @@ -8,16 +8,26 @@ % } <% $void_reason |h %> </I> +<% $unvoid %> <%init> my( $cust_credit_void, %opt ) = @_; my $date_format = $opt{'date_format'} || '%m/%d/%Y'; -#my $unvoid = ''; # not yet available +my $unvoid = ''; +$unvoid = areyousure_link("${p}misc/unvoid-cust_credit_void.cgi?".$cust_credit_void->crednum, + emt('Are you sure you want to unvoid this credit?'), + '', + emt('unvoid') + ) + if $cust_credit_void->closed !~ /^Y/i + && $opt{'Unvoid credit'}; + my $reason = $cust_credit_void->reason; $reason = " ($reason)" if $reason; my $void_reason = $cust_credit_void->void_reason; $void_reason = " ($void_reason)" if $void_reason; </%init> + |