X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=c41d2d8946b64fa026088f51257eed5f95162355;hp=ee5f86973b6c871ec4a9a350aebbdcd512c51efb;hb=92fa788fb842baab8fa185e159d8effde739bd74;hpb=c13536bec93ca007d6b339dfbc7edc81ae58c082
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index ee5f86973..c41d2d894 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -554,6 +554,11 @@ function cust_pay_unapply_areyousure(href) {
== true)
window.location.href = href;
}
+function cust_credit_unapply_areyousure(href) {
+ if (confirm("Are you sure you want to unapply this credit?")
+ == true)
+ window.location.href = href;
+}
function cust_credit_areyousure(href) {
if (confirm("Are you sure you want to delete this credit?")
== true)
@@ -637,9 +642,13 @@ if ( $conf->config('payby-default') ne 'HIDE' ) {
$cust_credit->closed !~ /^Y/i && $conf->exists('deletecredits')
? qq! (delete)!
: '';
+ my $unapply =
+ $cust_credit->closed !~ /^Y/i && $conf->exists('unapplycredits')
+ ? qq! (unapply)!
+ : '';
push @history,
"$date\tCredit #$crednum: $reason
".
- "(applied to invoice #$invnum on $app_date)$delete\t\t\t$amount\t";
+ "(applied to invoice #$invnum on $app_date)$delete$unapply\t\t\t$amount\t";
}
}