[freeside-commits] branch master updated. 2459fe417bd3ac2424cd9436e93b0bdb93dcd49b

Christopher Burger burgerc at freeside.biz
Mon Mar 25 13:46:27 PDT 2019


The branch, master has been updated
       via  2459fe417bd3ac2424cd9436e93b0bdb93dcd49b (commit)
      from  ce35f4f2bfe2799fc3c80216f8d6ecfed8fd6ac8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2459fe417bd3ac2424cd9436e93b0bdb93dcd49b
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Mon Mar 25 16:45:40 2019 -0400

    RT# 82959 - added agent virtualization to unprovisioned services report.

diff --git a/httemplate/search/unprovisioned_services.html b/httemplate/search/unprovisioned_services.html
index a7791ba86..0ef1ff633 100644
--- a/httemplate/search/unprovisioned_services.html
+++ b/httemplate/search/unprovisioned_services.html
@@ -69,10 +69,13 @@ foreach my $svcpart ( @svcpart ) {
 $svcpart_limit = " and pkg_svc.svcpart in (". join(',', at svcpart) . ")"
     if scalar(@svcpart);
 
+## here is the agent virtualization
+my $agentnums_sql = $FS::CurrentUser::CurrentUser->agentnums_sql;
+
 my $search = " where cust_pkg.cancel is null and pkg_svc.quantity > 0 and "
 	    . " pkg_svc.quantity > (select count(1) from cust_svc where "
 	    . " cust_svc.pkgnum = cust_pkg.pkgnum and "
-	    . " cust_svc.svcpart = pkg_svc.svcpart) $svcpart_limit";
+	    . " cust_svc.svcpart = pkg_svc.svcpart) $svcpart_limit and $agentnums_sql";
 
 my $addl_from = " join pkg_svc using (pkgpart) ".
             FS::UI::Web::join_cust_main('cust_pkg', 'cust_pkg');

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/unprovisioned_services.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list