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 Package type and location change
13 % } elsif ( $pkgpart_change ) {
15 % } elsif ( $location_change ) {
18 <B><% time2str('%b %o, %Y', $cust_pkg->get('cancel')) %></B>
20 % if ( $pkgpart_change ) {
21 from <% $popup_link |n %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->custom_comment |h %></A>
23 % if ( $pkgpart_change and $location_change ) {
26 % if ( $location_change ) {
27 from <I><% $popup_link |n %><% $cust_pkg->location_label %></A></I>
31 % if ( $cust_pkg->get('changed_from_pkg') ) {
32 <& hidden.html, $cust_pkg->get('changed_from_pkg'),
34 'next_pkg' => $cust_pkg,
38 % if ( !$iopt{noframe} ) {
43 my $part_pkg = $cust_pkg->part_pkg;
45 my $next = delete($iopt{'next_pkg'});
46 my $curuser = $FS::CurrentUser::CurrentUser;
47 my $pkgnum = $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '';
49 my $id = "cust_pkg".$cust_pkg->pkgnum;
51 my $pkgpart_change = ($next->pkgpart != $cust_pkg->pkgpart);
52 my $location_change = ($next->locationnum != $cust_pkg->locationnum);
53 my $both_change = $pkgpart_change && $location_change;
56 include('/elements/popup_link_onclick.html',
57 'action' => $fsurl.'view/cust_pkg-popup.html?' . $cust_pkg->pkgnum,
58 'actionlabel' => 'Package #'.$cust_pkg->pkgnum,
61 'color' => $cust_pkg->statuscolor,
63 my $popup_link = qq(<A HREF="#" onclick="$onclick">);