X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fpackage.html;h=ab19ff94a80ba14b5e852ad2f82c7808596fa215;hb=1939aff38dd65509468760264659091f4b6b3e78;hp=3b39c86ebc155faad7a3746df23d219d75184316;hpb=24d450cf92a14baa588b71e1eb05e80285486a67;p=freeside.git diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 3b39c86eb..ab19ff94a 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -258,7 +258,7 @@ actionlabel => emt('Change package'), #width => 768, width => 960, - height => 538, + height => 650, }, { label => 'Discount package', @@ -349,7 +349,7 @@ }, { label => '-', - condition => sub { $part_pkg->freq ne '0' }, + #condition => sub { $part_pkg->freq ne '0' }, content => '-', }, @@ -522,12 +522,13 @@ { label => 'Cancel now', acl => 'Cancel customer package immediately', - condition => sub { $part_pkg->freq ne '0' - && ! $change_from - && ! $supplemental - && ! $cust_pkg->change_to_pkgnum - && ! $cust_pkg->get('cancel') - }, + condition => sub { + ( $part_pkg->freq ne '0' || ! $cust_pkg->get('setup') ) + && ! $change_from + && ! $supplemental + && ! $cust_pkg->change_to_pkgnum + && ! $cust_pkg->get('cancel') + }, popup => "misc/cancel_pkg.html?method=cancel;$plink", actionlabel => emt('Cancel now'), color => '#FF0000', @@ -563,10 +564,11 @@ }, { label => '-', - condition => sub { $part_pkg->freq ne '0' - && ! $change_from - && ! $cust_pkg->get('cancel') - }, + condition => sub { + ( $part_pkg->freq ne '0' || ! $cust_pkg->get('setup') ) + && ! $change_from + && ! $cust_pkg->get('cancel') + }, content => '-', }, @@ -587,13 +589,13 @@ "zip=;country=$countrydefault", actionlabel => emt('Change location'), width => 960, - height => 530, + height => 650, }, { label => 'Edit location', acl => 'Change customer package', condition => sub { ! $change_from && $cust_pkg->locationnum != $cust_pkg->cust_main->ship_locationnum }, - popup => 'misc/cust_location.cgi?locationnum='. + popup => 'edit/cust_location.cgi?locationnum='. $cust_pkg->locationnum, actionlabel => emt('Edit location'), width => 700,