summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-part_pkg_usageprice.html
blob: d4e2d846992327522ade63380ad8c6ae8dea9c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>