RT#38597: OQM - svc Circuit use and setup [v3 only]
authorJonathan Prykop <jonathan@freeside.biz>
Wed, 11 Nov 2015 05:51:17 +0000 (23:51 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Wed, 11 Nov 2015 05:51:17 +0000 (23:51 -0600)
httemplate/elements/tr-cust_svc.html

index 2d1a9e6..de9751b 100644 (file)
@@ -39,8 +39,14 @@ Usage:
 %   }
     </B>
 %   if ($part_svc->svcdb eq 'svc_circuit') {
 %   }
     </B>
 %   if ($part_svc->svcdb eq 'svc_circuit') {
-      <BR>Provider:&nbsp;<% $svc_x->circuit_provider->provider %>
-      <BR>Type:&nbsp;<% $svc_x->circuit_type->typename %>
+%     my $provider = qsearchs('circuit_provider', { 'providernum' => $svc_x->providernum });
+%     my $ctype    = qsearchs('circuit_type', { 'typenum' => $svc_x->typenum });
+%     if ($provider) {
+      <BR>Provider:&nbsp;<% $provider->provider %>
+%     }
+%     if ($ctype) {
+      <BR>Type:&nbsp;<% $ctype->typename %>
+%     }
 %   }
 %   if ( $opt{after_svc_callback} ) {
       <% &{ $opt{after_svc_callback} }( $cust_svc ) %>
 %   }
 %   if ( $opt{after_svc_callback} ) {
       <% &{ $opt{after_svc_callback} }( $cust_svc ) %>