1 package FS::cust_bill_pay_batch;
5 use FS::Record qw( qsearch qsearchs );
11 FS::cust_bill_pay_batch - Object methods for cust_bill_pay_batch records
15 use FS::cust_bill_pay_batch;
17 $record = new FS::cust_bill_pay_batch \%hash;
18 $record = new FS::cust_bill_pay_batch { 'column' => 'value' };
20 $error = $record->insert;
22 $error = $new_record->replace($old_record);
24 $error = $record->delete;
26 $error = $record->check;
30 An FS::cust_bill_pay_batch object represents a relationship between a
31 customer's bill and a batch. FS::cust_bill_pay_batch inherits from
32 FS::Record. The following fields are currently supported:
36 =item billpaynum - primary key
38 =item invnum - customer's bill (invoice)
40 =item paybatchnum - entry in cust_pay_batch table
55 Creates a new record. To add the record to the database, see L<"insert">.
57 Note that this stores the hash reference, not a distinct copy of the hash it
58 points to. You can ask the object for a copy with the I<hash> method.
62 sub table { 'cust_bill_pay_batch'; }
66 Adds this record to the database. If there is an error, returns the error,
67 otherwise returns false.
73 Delete this record from the database.
77 =item replace OLD_RECORD
79 Replaces the OLD_RECORD with this one in the database. If there is an error,
80 returns the error, otherwise returns false.
86 Checks all fields to make sure this is a valid example. If there is
87 an error, returns the error, otherwise returns false. Called by the insert
96 $self->ut_numbern('billpaynum')
97 || $self->ut_number('invnum')
98 || $self->ut_number('paybatchnum')
99 || $self->ut_money('amount')
100 || $self->ut_numbern('_date')
102 return $error if $error;
115 L<FS::Record>, schema.html from the base documentation.