[freeside-users] show ordernum for cable package on invoice
gilbert at dido.ca
gilbert at dido.ca
Wed Dec 5 05:28:09 PST 2018
Can anyone on the list confirm that they are using service svc_cable and it is showing serial number or mac address or anything other than n/a in their system?
I’ve actually created a svc_cable package in the demo system on freeside.biz site and billed it and it shows n/a as well so I think it’s a bug.
Not sure
From: freeside-users <freeside-users-bounces at freeside.biz> On Behalf Of Kristian Hoffmann
Sent: Monday, December 3, 2018 3:04 PM
To: Freeside users mailing list <freeside-users at freeside.biz>
Subject: Re: [freeside-users] show ordernum for cable package on invoice
Change it to the following to see if you're actually running the modifications.
sub label {
return 'test';
}
If nothing changes in the UI, then you need to troubleshoot why your changes aren't being used. It could be as simple as needing to restart apache after making the changes.
-Kristian
On Sat, 2018-12-01 at 05:47 +0000, Gilbert Rebeiro wrote:
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 <mailto:khoff at fire2wire.com> >
To: "Freeside users mailing list" <freeside-users at freeside.biz <mailto: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...
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 list
freeside-users at freeside.biz <mailto:freeside-users at freeside.biz>
http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users
_______________________________________________
freeside-users mailing list
freeside-users at freeside.biz <mailto:freeside-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/20181205/01469a5c/attachment.html>
More information about the freeside-users
mailing list