1 % if (!$iopt{noframe}) {
2 % # then start the block here, and assign a suitable ID (cust_pkgX_block)
3 <TABLE CLASS="hiddenrows" STYLE="display: none" ID="<% $id %>_block">
11 % if ( $pkgpart_change and $location_change ) {
12 <% emt('Package and location change') %>
13 % } elsif ( $pkgpart_change ) {
14 <% emt('Package change') %>
15 % } elsif ( $location_change ) {
16 <% emt('Location change') %>
17 % } else { # in case the package was somehow replaced with itself
18 <% emt('Other package change') %>
20 <B><% time2str('%b %o, %Y', $cust_pkg->get('cancel')) %></B>
22 % if ( $pkgpart_change ) {
23 <% emt('from') %> <% $popup_link |n %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->custom_comment |h %></A>
25 % if ( $pkgpart_change and $location_change ) {
28 % if ( $location_change ) {
29 <% emt('from') %> <I><% $popup_link |n %><% $cust_pkg->location_label %></A></I>
31 % if ( !$pkgpart_change and !$location_change ) {
32 % # have to show _something_
33 <% $popup_link |n %><% emt('Details') %></A>
37 % if ( $cust_pkg->get('changed_from_pkg') ) {
38 <& hidden.html, $cust_pkg->get('changed_from_pkg'),
40 'next_pkg' => $cust_pkg,
44 % if ( !$iopt{noframe} ) {
49 my $part_pkg = $cust_pkg->part_pkg;
51 my $next = delete($iopt{'next_pkg'});
52 my $curuser = $FS::CurrentUser::CurrentUser;
53 my $pkgnum = $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '';
55 my $id = "cust_pkg".$cust_pkg->pkgnum;
57 my $pkgpart_change = ($next->pkgpart != $cust_pkg->pkgpart);
58 my $location_change = ($next->locationnum != $cust_pkg->locationnum);
59 my $both_change = $pkgpart_change && $location_change;
62 include('/elements/popup_link_onclick.html',
63 'action' => $fsurl.'view/cust_pkg-popup.html?' . $cust_pkg->pkgnum,
64 'actionlabel' => 'Package #'.$cust_pkg->pkgnum,
67 'color' => $cust_pkg->statuscolor,
69 my $popup_link = qq(<A HREF="#" onclick="$onclick">);