[freeside-users] show ordernum for cable package on invoice

Gilbert Rebeiro gilbert at dido.ca
Fri Nov 30 21:47:06 PST 2018

Thanks for the hack!

I do have Mac and Serial# filled in and yet it still shows n/a
Not sure why?
Any ideas?

------ Original Message ------
From: "Kristian Hoffmann" <khoff at fire2wire.com>
To: "Freeside users mailing list" <freeside-users at freeside.biz>
Sent: 11/30/2018 6:46:52 PM
Subject: Re: [freeside-users] show ordernum for cable package on invoice

>Looks like it's using MAC and/or Serial # for the label...
>If you want to hack it...
>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;
>   push @label, 'Order:'. $self->ordernum
>     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);
>On Fri, 2018-11-30 at 01:21 +0000, Gilbert Rebeiro wrote:
>>I've got packages based on service svc_cable.
>>I'd like the ordernum field from these packages to show on the 
>>Is there a simple way to accomplish this?
>>currently it shows "Cable: n/a"
>>Cable is the name of the service.  I'm not sure which field it is 
>>trying to print.
>>freeside-users mailing list
>>freeside-users at freeside.biz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.freeside.biz/pipermail/freeside-users/attachments/20181201/a860445b/attachment.html>

More information about the freeside-users mailing list