X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fservices.html;h=a23a4c2fefd9d1ad3a0d7c8ae6691a2129df323a;hb=4dc075fc38008d1c6cbe9b88b2bdb32bdc92adbf;hp=fa193d636305847b0857848b57f0ae036570aaad;hpb=0c8c5a5727dda5f8e5cf6f999d5b671a77556c6a;p=freeside.git
diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html
index fa193d636..a23a4c2fe 100644
--- a/httemplate/view/cust_main/packages/services.html
+++ b/httemplate/view/cust_main/packages/services.html
@@ -10,6 +10,7 @@ function clearhint_search_cust_svc(obj, str) {
}
+% my $showdidlink = browse_received_did_inventory($cust_pkg->custnum);
% foreach my $part_svc (
% $cust_pkg->part_svc(
% 'summarize_size' => $opt{'cust_pkg-large_pkg_size'},
@@ -97,29 +98,32 @@ function clearhint_search_cust_svc(obj, str) {
% local $opt{'num_avail'} = $part_svc->num_avail;
<% svc_provision_link($cust_pkg, $part_svc, \%opt, $curuser) %>
% }
-% if (
-% qsearch({
-% 'table' => 'did_order',
-% 'hashref' => { 'custnum' => $cust_pkg->custnum },
-% 'extra_sql' => ' LIMIT 1'
-% })
-% ||
-% qsearch({
-% 'table' => 'did_order_item',
-% 'hashref' => { 'custnum' => $cust_pkg->custnum },
-% 'addl_from' => ' INNER JOIN did_order ON did_order_item.ordernum = did_order.ordernum',
-% 'extra_sql' => ' LIMIT 1'
-% })
-% ) {
+% if ($showdidlink) {
<% mt('Browse Received DID Inventory') |h %>
% }
% }
-% }
+% }
+
+% } #foreach part_svc
+
+% if ($cust_pkg->get('cancel')) {
+% foreach my $svc (
+% $cust_pkg->uncancel_svc_summary('summarize_size' => $opt{'cust_pkg-large_pkg_size'}, 'no_test_reprovision' => 1)
+% ) {
+