From: jeff Date: Tue, 18 Dec 2007 22:41:07 +0000 (+0000) Subject: correct bad credit reason conflict resolution X-Git-Tag: TRIXBOX_2_6~159 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9e5c157b7be4ddf6d518a413857de5427149b745 correct bad credit reason conflict resolution --- diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index b6924f4d9..2fadb4763 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -30,7 +30,12 @@ Credit %#print qq! Also post refund!; % -<% include('/elements/tr-select-reason.html', 'reasonnum', 'R', '', '', '', 'document.credit_popup.submit',) %> +<% include('/elements/tr-select-reason.html', + 'field' => 'reasonnum', + 'reason_class' => 'R', + 'control_button' => 'document.credit_popup.submit', + ) +%> Auto-apply
to invoices diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html index b57f78a1e..2639a9d5c 100755 --- a/httemplate/elements/tr-select-reason.html +++ b/httemplate/elements/tr-select-reason.html @@ -110,7 +110,7 @@ if ($class eq 'C') { } elsif ($class eq 'S') { $access_right = 'Suspend customer package'; $add_access_right = 'Add on-the-fly suspend reason'; -} elsif ($class eq 'S') { +} elsif ($class eq 'R') { $access_right = 'Post credit'; $add_access_right = 'Add on-the-fly credit reason'; } else {