X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pay_batch.pm;fp=FS%2FFS%2Fcust_pay_batch.pm;h=d4d40b5804117223d812c5aedabe86a9162b951c;hp=db53b19c98a524c57cfaafdcb00fc7a2935ecec8;hb=32072dbf59a054529f5304574c0f56f9567d14d0;hpb=66c235e33563ccd785ff9e0828398f778a75fb9f diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm index db53b19c9..d4d40b580 100644 --- a/FS/FS/cust_pay_batch.pm +++ b/FS/FS/cust_pay_batch.pm @@ -1,15 +1,11 @@ package FS::cust_pay_batch; +use base qw( FS::payinfo_Mixin FS::cust_main_Mixin FS::Record ); use strict; -use vars qw( @ISA $DEBUG ); +use vars qw( $DEBUG ); use Carp qw( confess ); use Business::CreditCard 0.28; use FS::Record qw(dbh qsearch qsearchs); -use FS::payinfo_Mixin; -use FS::cust_main; -use FS::cust_bill; - -@ISA = qw( FS::payinfo_Mixin FS::cust_main_Mixin FS::Record ); # 1 is mostly method/subroutine entry and options # 2 traces progress of some operations @@ -205,13 +201,6 @@ sub check { Returns the customer (see L) for this batched credit card payment. -=cut - -sub cust_main { - my $self = shift; - qsearchs( 'cust_main', { 'custnum' => $self->custnum } ); -} - =item expmmyy Returns the credit card expiration date in MMYY format. If this is a @@ -236,11 +225,6 @@ Returns the payment batch this payment belongs to (Lby_key($self->batchnum); -} - #you know what, screw this in the new world of events. we should be able to #get the event defs to retry (remove once.pm condition, add every.pm) without #mucking about with statuses of previous cust_event records. right?