optimize CDR rating after timed rate perf regression, RT#15739
[freeside.git] / httemplate / edit / discount.html
index 24d8fa5..b195eb3 100644 (file)
@@ -4,6 +4,8 @@
                  'fields' => [
                                'name',
                                { field => 'disabled', type => 'checkbox', value=>'Y', },
+                               # a weird kind of false laziness
+                               # w/elements/tr-select-discount.html
                                { field => '_type',    type => 'select',
                                  options => \@_type_options,
                                  onchange => '_type_changed',
@@ -19,6 +21,7 @@
                                { field => 'months', type => 'text', size => 2,
                                  postfix => '<BR><FONT SIZE="-1"><I>(blank for non-expiring discount)</I></FONT>',
                                },
+                               { field => 'setup', type => 'checkbox', value=>'Y', },
                              ],
                  'labels' => { 
                                'discountnum' => 'Discount #',
@@ -27,7 +30,8 @@
                                '_type'       => 'Type&nbsp;',
                                'amount'      => 'Amount&nbsp;',
                                'percent'     => 'Percentage&nbsp;',
-                               'months'      => '# of Months',
+                               'months'      => 'Duration (months)',
+                               'setup'       => 'Apply to setup fees',
                              },
                  'viewall_dir' => 'browse',
                  'new_callback' => $new_callback,