summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/discount.html
diff options
context:
space:
mode:
authorivan <ivan>2010-02-05 02:39:31 +0000
committerivan <ivan>2010-02-05 02:39:31 +0000
commit8a0204b4a129a3c26dcca18ba401b2de26d22d2b (patch)
treeacc110c2e41d74fefa6c038c6b0d414865fb29b2 /httemplate/edit/process/discount.html
parent4cacb3fa439b56fc7c9a742b69ec3f6ffd660433 (diff)
discounts, RT#6679
Diffstat (limited to 'httemplate/edit/process/discount.html')
-rw-r--r--httemplate/edit/process/discount.html17
1 files changed, 0 insertions, 17 deletions
diff --git a/httemplate/edit/process/discount.html b/httemplate/edit/process/discount.html
index 54307b708..80dc0f5bd 100644
--- a/httemplate/edit/process/discount.html
+++ b/httemplate/edit/process/discount.html
@@ -1,7 +1,6 @@
<% include( 'elements/process.html',
'table' => 'discount',
'viewall_dir' => 'browse',
- 'precheck_callback' => $precheck_callback,
)
%>
<%init>
@@ -9,20 +8,4 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-my $precheck_callback = sub {
- my( $cgi ) = @_;
-
- if ( $cgi->param('_type') eq 'Select discount type' ) {
- return 'Please select a discount type';
- } elsif ( $cgi->param('_type') eq 'Amount' ) {
- $cgi->param('percent', '0');
- return 'Amount must be greater than 0' unless $cgi->param('amount') > 0;
- } elsif ( $cgi->param('_type') eq 'Percentage' ) {
- $cgi->param('amount', '0.00');
- return 'Percentage must be greater than 0' unless $cgi->param('percent') > 0;
- }
-
- '';
-};
-
</%init>