<html><head>

<style type="text/css">#x15352b0357724e2 blockquote.cite
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204);}
#x15352b0357724e2 blockquote.cite2
{margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 3px; padding-top: 0px;}
#x15352b0357724e2
{font-family: 'Segoe UI'; font-size: 12pt;}
</style><style id="css_styles" type="text/css">blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] {  list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt;   }</style>
</head>
<body><div>Thanks for the hack!</div><div><br /></div><div>I do have Mac and Serial# filled in and yet it still shows n/a </div><div>Not sure why?</div><div>Any ideas?</div>
<div><br /></div>
<div>------ Original Message ------</div>
<div>From: "Kristian Hoffmann" <<a href="mailto:khoff@fire2wire.com">khoff@fire2wire.com</a>></div>
<div>To: "Freeside users mailing list" <<a href="mailto:freeside-users@freeside.biz">freeside-users@freeside.biz</a>></div>
<div>Sent: 11/30/2018 6:46:52 PM</div>
<div>Subject: Re: [freeside-users] show ordernum for cable package on invoice</div><div><br /></div>
<div id="x15352b0357724e2" style="text-align:left; direction:ltr;"><blockquote cite="8dacfe95280fa181e09f987c719be31ec9f83013.camel@fire2wire.com" type="cite" class="cite2">
<div>Looks like it's using MAC and/or Serial # for the label...</div><div><br /></div><div><a href="http://git.freeside.biz/cgit/freeside.git/tree/FS/FS/svc_cable.pm?h=FREESIDE_4_BRANCH#n137">http://git.freeside.biz/cgit/freeside.git/tree/FS/FS/svc_cable.pm?h=FREESIDE_4_BRANCH#n137</a></div><div><br /></div><div>If you want to hack it...</div><div><br /></div><div><pre><code>sub label {
  my $self = shift;
  my $part_svc = $self->cust_svc->part_svc;
  my @label = ();
  push @label, 'MAC:'. $self->mac_addr_pretty
    if $self->mac_addr;</code></pre><pre><code>  push @label, 'Order:'. $self->ordernum</code></pre><pre><code>    if $self->ordernum;
  if ( $self->serialnum ) {
    my $serialnum_label = $part_svc->part_svc_column('serialnum');
    push @label,
      ($serialnum_label && $serialnum_label->columnlabel || 'Serial#').
      $self->serialnum;
  }
  return join(', ', @label);
}</code></pre><pre><br /></pre><div>-Kristian</div><pre><br /></pre></div><div>On Fri, 2018-11-30 at 01:21 +0000, Gilbert Rebeiro wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex" class="cite">Hi,<div><br /></div><div>I've got packages based on service svc_cable.</div><div>I'd like the ordernum field from these packages to show on the invoice.</div><div>Is there a simple way to accomplish this?</div><div>currently it shows "Cable: n/a"</div><div>Cable is the name of the service.  I'm not sure which field it is trying to print.</div><div><br /></div><div>Thanks,</div><div>Gilbert.</div><pre>_______________________________________________</pre><pre>freeside-users mailing list</pre><pre><a href="mailto:freeside-users@freeside.biz">freeside-users@freeside.biz</a></pre><pre><a href="http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users">http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a></pre><pre><br /></pre></blockquote></blockquote></div>

</body></html>