summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-15 15:36:40 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-15 15:36:40 -0700
commit24d450cf92a14baa588b71e1eb05e80285486a67 (patch)
treecc82b1f3050e763d207298323e6765d98667123f
parent1bbbe4252ec1e41075d015f33171f84380e67457 (diff)
start billing link for one-time charge packages ordered on hold, RT#75813
-rw-r--r--httemplate/view/cust_main/packages/package.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html
index 860cd47c6..3b39c86eb 100644
--- a/httemplate/view/cust_main/packages/package.html
+++ b/httemplate/view/cust_main/packages/package.html
@@ -262,8 +262,7 @@
},
{ label => 'Discount package',
- condition => sub { $part_pkg->freq ne '0'
- && ! $change_from
+ condition => sub { ! $change_from
&& ! $supplemental
&& ! $cust_pkg->get('cancel')
&& $can_discount_pkg
@@ -471,12 +470,11 @@
{ label => 'Start billing',
acl => 'Unsuspend customer package',
- condition => sub { $part_pkg->freq ne '0'
- && ! $change_from
- && ! $supplemental
- && ! $cust_pkg->get('cancel')
- && $cust_pkg->get('susp')
- && $cust_pkg->order_date == $cust_pkg->get('susp')
+ condition => sub { ! $change_from
+ && ! $supplemental
+ && ! $cust_pkg->get('cancel')
+ && $cust_pkg->get('susp')
+ && $cust_pkg->order_date == $cust_pkg->get('susp')
},
popup => "misc/unhold_pkg.html?$plink",
actionlabel => emt('Start billing'),