summaryrefslogtreecommitdiff
path: root/FS/FS/pay_batch.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-10-21 23:21:52 +0000
committerivan <ivan>2011-10-21 23:21:52 +0000
commit61070078fc7353896b5d1e05c155b22d2a109205 (patch)
treefb2cf674b02f121d3d39d488d201534044c793b4 /FS/FS/pay_batch.pm
parent80e675c7305768010f8b08ef2ebdfb936432e84d (diff)
agent-virt batches and batchconfig-eftcanada config (argh!), RT#14859
Diffstat (limited to 'FS/FS/pay_batch.pm')
-rw-r--r--FS/FS/pay_batch.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm
index bde8fdb..bb92bdf 100644
--- a/FS/FS/pay_batch.pm
+++ b/FS/FS/pay_batch.pm
@@ -122,6 +122,16 @@ sub check {
$self->SUPER::check;
}
+=item agent
+
+Returns the L<FS::agent> object for this template.
+
+=cut
+
+sub agent {
+ qsearchs('agent', { 'agentnum' => $_[0]->agentnum });
+}
+
=item rebalance
=cut