X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=796a1602239bdbebc76e6c29f130696b5b16cac1;hb=39fd1d46b323035c264f0cb12cf1d07c52cb0dad;hp=b476847c50a70c1d26ba9633ed2eea2d9345b918;hpb=32072dbf59a054529f5304574c0f56f9567d14d0;p=freeside.git diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index b476847c5..796a16022 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -419,6 +419,29 @@ sub cust_main_sql { ); } +=item num_ordered_cust_main + +Returns the number of ordered customers for this agent (customers with packages +ordered, but not yet billed). + +=cut + +sub num_ordered_cust_main { + shift->num_sql(FS::cust_main->ordered_sql); +} + +=item ordered_cust_main + +Returns the ordered customers for this agent (customers with packages ordered, +but not yet billed), as cust_main objects. + +=cut + +sub ordered_cust_main { + shift->cust_main_sql(FS::cust_main->ordered_sql); +} + + =item num_active_cust_main Returns the number of active customers for this agent (customers with active