X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-part_pkg.cgi;h=885d3460f2c0c7d0a51de033c06268d83f3bf483;hp=187833025a98bca2ad246d3e6c5a4f507bd74d69;hb=ded6a5654efd56d2f271970c992133600e0223b1;hpb=3d8dcf062ffb2da2aa4969a516c210680dab266d diff --git a/httemplate/misc/xmlhttp-part_pkg.cgi b/httemplate/misc/xmlhttp-part_pkg.cgi index 187833025..885d3460f 100644 --- a/httemplate/misc/xmlhttp-part_pkg.cgi +++ b/httemplate/misc/xmlhttp-part_pkg.cgi @@ -3,6 +3,10 @@ # default returned records must maintain consistency with /elements/select-part_pkg.html +my $select = 'part_pkg.*, setup_option.optionvalue AS _setup_fee, + recur_option.optionvalue AS _recur_fee'; +my $addl_from .= FS::part_pkg->join_options_sql; + my $extra_sql = ' WHERE ' . FS::part_pkg->curuser_pkgs_sql; # equivalent to agent_virt=1 and agent_null=1 in /elements/select-table.html @@ -13,6 +17,8 @@ $extra_sql .= ' AND ' . my @records = qsearch( { 'table' => 'part_pkg', + 'select' => $select, + 'addl_from' => $addl_from, 'hashref' => {}, 'extra_sql' => $extra_sql, 'order_by' => "ORDER BY pkg", @@ -26,6 +32,4 @@ my @return = map { } } @records; -print STDERR Dumper(\@return); -