X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-cust-part_pkg.html;h=731beae2a0a36ea13888b25f876ce0c7a0192372;hb=b431ece7b4a71aa5771f44393da582692f668817;hp=7f91e8141934685b139359680c3a28485b8dbab7;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/elements/select-cust-part_pkg.html b/httemplate/elements/select-cust-part_pkg.html index 7f91e8141..731beae2a 100644 --- a/httemplate/elements/select-cust-part_pkg.html +++ b/httemplate/elements/select-cust-part_pkg.html @@ -18,12 +18,11 @@ Example: -<% include( '/elements/select-part_pkg.html', - 'empty_label' => 'Select package', #? need here in case removed +<& /elements/select-part_pkg.html, + 'empty_label' => emt('Select package'), #? need here in case removed #from select-part_pkg ?? %opt, - ) -%> +&> <%init> my( %opt ) = @_; @@ -32,10 +31,5 @@ my $cust_main = $opt{'cust_main'} or die "cust_main not specified"; $opt{'extra_sql'} .= ' AND '. FS::part_pkg->agent_pkgs_sql( $cust_main->agent ); -# ' AND ( agentnum IS NOT NULL '. -# ' OR 0 < ( SELECT COUNT(*) FROM type_pkgs '. -# ' WHERE typenum = '. $cust_main->agent->typenum. -# ' AND type_pkgs.pkgpart = part_pkg.pkgpart )'. -# ' )';