projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ticket: 27309; use dbh->quote
[freeside.git]
/
httemplate
/
elements
/
tr-select-reason.html
diff --git
a/httemplate/elements/tr-select-reason.html
b/httemplate/elements/tr-select-reason.html
index
c1df10b
..
b7a715b
100755
(executable)
--- a/
httemplate/elements/tr-select-reason.html
+++ b/
httemplate/elements/tr-select-reason.html
@@
-6,8
+6,8
@@
Example:
#required
'field' => 'reasonnum',
#required
'field' => 'reasonnum',
- 'reason_class' => 'C', # currently 'C', 'R', or 'S'
- # for cancel, credit, or suspend
+ 'reason_class' => 'C', # currently 'C', 'R',
'F',
or 'S'
+ # for cancel, credit,
refund,
or suspend
#recommended
'cgi' => $cgi, #easiest way for things to be properly "sticky" on errors
#recommended
'cgi' => $cgi, #easiest way for things to be properly "sticky" on errors
@@
-154,16
+154,15
@@
my $controlledbutton = $opt{'control_button'};
my $id = $opt{'id'} || $func_suffix;
my $id = $opt{'id'} || $func_suffix;
-my
( $add_access_right, $access_right );
+my
$add_access_right;
if ($class eq 'C') {
if ($class eq 'C') {
- $access_right = 'Cancel customer';
$add_access_right = 'Add on-the-fly cancel reason';
} elsif ($class eq 'S') {
$add_access_right = 'Add on-the-fly cancel reason';
} elsif ($class eq 'S') {
- $access_right = 'Suspend customer package';
$add_access_right = 'Add on-the-fly suspend reason';
} elsif ($class eq 'R') {
$add_access_right = 'Add on-the-fly suspend reason';
} elsif ($class eq 'R') {
- $access_right = 'Post credit';
$add_access_right = 'Add on-the-fly credit reason';
$add_access_right = 'Add on-the-fly credit reason';
+} elsif ($class eq 'F') {
+ $add_access_right = 'Add on-the-fly refund reason';
} else {
die "illegal class: $class";
}
} else {
die "illegal class: $class";
}