correct bad credit reason conflict resolution
authorjeff <jeff>
Tue, 18 Dec 2007 22:41:07 +0000 (22:41 +0000)
committerjeff <jeff>
Tue, 18 Dec 2007 22:41:07 +0000 (22:41 +0000)
httemplate/edit/cust_credit.cgi
httemplate/elements/tr-select-reason.html

index b6924f4..2fadb47 100755 (executable)
@@ -30,7 +30,12 @@ Credit
 %#print qq! <INPUT TYPE="checkbox" NAME="refund" VALUE="$refund">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',
+          )
+%>
 
   <TR>
     <TD ALIGN="right">Auto-apply<BR>to invoices</TD>
index b57f78a..2639a9d 100755 (executable)
@@ -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 {