diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-04-27 15:31:08 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-04-27 15:31:08 -0700 |
commit | fd068873ca79b92bed2b8bdca68d52f4342faeac (patch) | |
tree | 6cd38536e2d1960e7b393cb6e929c124e6585217 /FS/FS/part_event/Action | |
parent | bcec9544f1786221b1c87c3f7df21ba87b1d9ab2 (diff) |
discount action UI improvements: don't show 'Custom discount' which we can't add on the fly, RT#75536
Diffstat (limited to 'FS/FS/part_event/Action')
-rw-r--r-- | FS/FS/part_event/Action/pkg_discount.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/part_event/Action/pkg_discount.pm b/FS/FS/part_event/Action/pkg_discount.pm index bae3c34..a10822e 100644 --- a/FS/FS/part_event/Action/pkg_discount.pm +++ b/FS/FS/part_event/Action/pkg_discount.pm @@ -26,12 +26,15 @@ sub option_fields { 'discountnum' => { 'label' => 'Discount', 'type' => 'select-table', #we don't handle the select-discount create a discount case 'table' => 'discount', - 'name_col' => 'description', #well, method - 'order_by' => 'ORDER BY discountnum', #requied because name_col is a method + #(well, since 2013 it winds up calling select-discount + # anyway (but not tr-select-discount) + #'name_col' => 'description', #well, method + #'order_by' => 'ORDER BY discountnum', #requied because name_col is a method + 'disable_empty' => 1, 'hashref' => { 'disabled' => '', 'months' => { op=>'!=', value=>'0' }, }, - 'disable_empty' => 1, + 'disable_custom_discount' => 1, }, ); } |