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

gilbert at dido.ca gilbert at dido.ca
Wed Dec 5 06:03:05 PST 2018


Does anyone have it working in version 4?
I remember in version 3.xx was working for me

-----Original Message-----
From: freeside-users <freeside-users-bounces at freeside.biz> On Behalf Of Larry Smith
Sent: Wednesday, December 5, 2018 9:01 AM
To: Freeside users mailing list <freeside-users at freeside.biz>
Subject: Re: [freeside-users] show ordernum for cable package on invoice

We use svc_cable on a few of our packages.

Include the MAC of the cable modem and the serial number and both show (mac and serial) on the plan and on the invoice.

Running Freeside 3.92-git
Debian GNU/Linux 8.8
Perl 5.20.2
Postgres 9.4.12

--
Larry Smith
lesmith at ecsis.net

On Wed December 5 2018 07:28, gilbert at dido.ca wrote:
> 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=FRE
>ESID
>E_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
_______________________________________________
freeside-users mailing list
freeside-users at freeside.biz
http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users



More information about the freeside-users mailing list