From 8fb243091939f37e24163925be78f4e9f3485978 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 12 Apr 2009 06:14:00 +0000 Subject: add svc_phone on new customer first package, RT#4315 --- httemplate/misc/part_svc-columns.cgi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httemplate/misc/part_svc-columns.cgi (limited to 'httemplate/misc/part_svc-columns.cgi') diff --git a/httemplate/misc/part_svc-columns.cgi b/httemplate/misc/part_svc-columns.cgi new file mode 100644 index 000000000..060256154 --- /dev/null +++ b/httemplate/misc/part_svc-columns.cgi @@ -0,0 +1,13 @@ +<% objToJson(\@output) %> +<%init> + +my $conf = new FS::Conf; + +my $pkgpart_svcpart = $cgi->param('arg'); +$pkgpart_svcpart =~ /^\d+_(\d+)$/; +my $part_svc = qsearchs('part_svc', { 'svcpart' => $1 }) if $1; + +my @output = map { ( $_->columnname, $_->columnflag, $_->columnvalue ) } + $part_svc->all_part_svc_column; + + -- cgit v1.2.1