[freeside-users] show ordernum for cable package on invoice
Kristian Hoffmann
khoff at fire2wire.com
Fri Nov 30 15:46:52 PST 2018
Looks like it's using MAC and/or Serial # for the label...
http://git.freeside.biz/cgit/freeside.git/tree/FS/FS/svc_cable.pm?h=FREESIDE_4_BRANCH#n137
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);
}
-Kristian
On Fri, 2018-11-30 at 01:21 +0000, Gilbert Rebeiro wrote:
> Hi,
> I've got packages based on service svc_cable.
> I'd like the ordernum field from these packages to show on the
> invoice.
> 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.
>
> Thanks,
> Gilbert.
> _______________________________________________freeside-users mailing
> listfreeside-users at freeside.biz
> http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.freeside.biz/pipermail/freeside-users/attachments/20181130/72064987/attachment.html>
More information about the freeside-users
mailing list