summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-03-06 15:19:53 -0800
committerIvan Kohler <ivan@freeside.biz>2014-03-06 15:19:53 -0800
commite9e0cf0989259b94d9758eceff448666a2e5a5cc (patch)
treec07f9bf18ce45df21927258baea22bdbd855a328 /httemplate/elements
parentd535b964454fbccc5ccf44a92a6cd8d8405cc549 (diff)
parentc7bc6770f2f0b4413b788f8fc9abde6ad5548da3 (diff)
Merge branch 'master' of https://github.com/jgoodman/Freeside
(github pull request #24 -- change refunds to proper refunds)
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/menu.html4
-rwxr-xr-xhttemplate/elements/tr-select-reason.html6
2 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html
index cd4fb39ec..4ba7b2f00 100644
--- a/httemplate/elements/menu.html
+++ b/httemplate/elements/menu.html
@@ -656,6 +656,10 @@ if ( $curuser->access_right('Configuration') ) {
$config_billing{'separator4'} = ''; #its a separator!
$config_billing{'Credit reasons'} = [ $fsurl.'browse/reason.html?class=R', 'Credit reasons explain why a credit was issued.' ];
$config_billing{'Credit reason types'} = [ $fsurl.'browse/reason_type.html?class=R', 'Credit reason types define groups of reasons.' ];
+
+ $config_billing{'separator5'} = ''; #its a separator!
+ $config_billing{'Refund reasons'} = [ $fsurl.'browse/reason.html?class=F', 'Refund reasons explain why a refund was issued.' ];
+ $config_billing{'Refund reason types'} = [ $fsurl.'browse/reason_type.html?class=F', 'Refund reason types define groups of reasons.' ];
}
#XXX also to be unified
diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html
index 9a670a26b..b7a715b42 100755
--- a/httemplate/elements/tr-select-reason.html
+++ b/httemplate/elements/tr-select-reason.html
@@ -6,8 +6,8 @@ Example:
#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
@@ -161,6 +161,8 @@ if ($class eq 'C') {
$add_access_right = 'Add on-the-fly suspend reason';
} elsif ($class eq 'R') {
$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";
}