diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-02-06 00:05:07 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-02-06 00:05:07 -0800 |
commit | 6a38629bcb54a2ad9b8a5de6cac9f478bc4a7e66 (patch) | |
tree | 5cc078d43fb65284538db676b9e1d88333a262b5 /FS/FS | |
parent | 9b3e40ffd129991d4567a3439eb2060c64cfa885 (diff) |
add "Ordered" status to customer number/link on agent browse, RT#27442
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/agent.pm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index b476847c5..0fdc5f542 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -419,6 +419,28 @@ 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 active_cust_main + +Returns the active customers for this agent, as cust_main objects. + +=cut + +sub active_cust_main { + shift->cust_main_sql(FS::cust_main->active_sql); +} + + =item num_active_cust_main Returns the number of active customers for this agent (customers with active |