diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-08 17:23:05 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-08 17:23:05 -0800 |
commit | 8861d46820af163c7de7839178b6120c9b32ab2c (patch) | |
tree | ebd723b2d1ea70f57bc52f94c80d991b5f50094a /httemplate/misc/xmlhttp-part_pkg_usageprice.html | |
parent | 49809d3653e7ac4951d36716dce3cd25ba9c3728 (diff) |
time/data/etc. unit pricing add-ons, RT#24392
Diffstat (limited to 'httemplate/misc/xmlhttp-part_pkg_usageprice.html')
-rw-r--r-- | httemplate/misc/xmlhttp-part_pkg_usageprice.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/httemplate/misc/xmlhttp-part_pkg_usageprice.html b/httemplate/misc/xmlhttp-part_pkg_usageprice.html new file mode 100644 index 000000000..d4e2d8469 --- /dev/null +++ b/httemplate/misc/xmlhttp-part_pkg_usageprice.html @@ -0,0 +1,24 @@ +<% encode_json( \@return ) %>\ +<%init> + +my( $pkgpart ) = $cgi->param('arg'); + +#could worry about agent-virting this so you can't see the add-on pricing of +# other agents, but not a real-world big worry + +my $part_pkg = qsearchs( 'part_pkg', { pkgpart=>$pkgpart } ); + +my $num = 0; + +my @return = map { + my @inc = ('/elements/cust_pkg_usageprice.html', + 'usagepricepart' => $_->usagepricepart, + ); + + ( include(@inc, field=>'usagepricenum'.$num, html_only=>1 ), + include(@inc, field=>'usagepricenum'.$num++, js_only=>1 ), + ); + } + $part_pkg->part_pkg_usageprice; + +</%init> |