agent-virt batches and batchconfig-eftcanada config (argh!), RT#14859
authorivan <ivan>
Fri, 21 Oct 2011 23:21:52 +0000 (23:21 +0000)
committerivan <ivan>
Fri, 21 Oct 2011 23:21:52 +0000 (23:21 +0000)
FS/FS/pay_batch.pm

index bde8fdb..bb92bdf 100644 (file)
@@ -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