X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fpackage.html;h=14f7fb0069d29751c30eb757c2042eb50919118c;hp=9fed5b581954144decb1735424b754de9ebf5192;hb=7118f8f027744b31c87444da0a47de3b1daa5da2;hpb=82e41e360194691a3585bbcebde481c2b20b37c4 diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 9fed5b581..14f7fb006 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -280,6 +280,10 @@ ';clone='. $part_pkg->pkgpart, }, + { label => '-', + content => '-', + }, + { label => 'View package events', acl => [ 'Billing event reports', 'View customer billing events', ], @@ -287,6 +291,11 @@ url => "search/cust_event.html?$plink", }, + { label => '-', + condition => sub { $cust_pkg->exists_cust_event }, + content => '-', + }, + { label => 'Change quantity', acl => 'Change customer package', condition => sub { $part_pkg->freq ne '0' @@ -314,6 +323,10 @@ height => 220, }, + { label => '-', + content => '-', + }, + { label => (@invoice_detail ? 'Edit' : 'Add'). ' invoice details', acl => 'Edit customer package invoice details', @@ -551,6 +564,44 @@ }, + { label => '-', + condition => sub { $part_pkg->freq ne '0' + && ! $change_from + && ! $cust_pkg->get('cancel') + }, + content => '-', + }, + + { label => 'Add contact', + #acl => 'Add package contact',#or something like that + condition => sub { ! $cust_pkg->get('cancel') }, + popup => "misc/change_pkg-contact.html?$plink", + actionlabel => emt('Add contact'), + width => 616, + height => 192, + }, + + { label => 'Change location', + acl => 'Change customer package', + condition => sub { ! $change_from }, + popup => "misc/change_pkg.cgi?locationnum=-1;$plink;". + "address1=;address2=;city=;county=;state=$statedefault;". + "zip=;country=$countrydefault", + actionlabel => emt('Change location'), + width => 960, + height => 530, + }, + + { 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='. + $cust_pkg->locationnum, + actionlabel => emt('Edit location'), + width => 700, + height => 355, + }, + ], ], &>