diff options
author | ivan <ivan> | 2009-04-12 06:14:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-04-12 06:14:00 +0000 |
commit | 8fb243091939f37e24163925be78f4e9f3485978 (patch) | |
tree | 83fa52bbbaff85ee834b8892e36859b0c2ff9f05 /httemplate/misc/part_svc-columns.cgi | |
parent | 40e8c362fea503d52c5ff679584842f0e23e112a (diff) |
add svc_phone on new customer first package, RT#4315
Diffstat (limited to 'httemplate/misc/part_svc-columns.cgi')
-rw-r--r-- | httemplate/misc/part_svc-columns.cgi | 13 |
1 files changed, 13 insertions, 0 deletions
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; + +</%init> |