1 package FS::cust_bill_pay_batch;
2 use base qw( FS::Record );
8 FS::cust_bill_pay_batch - Object methods for cust_bill_pay_batch records
12 use FS::cust_bill_pay_batch;
14 $record = new FS::cust_bill_pay_batch \%hash;
15 $record = new FS::cust_bill_pay_batch { 'column' => 'value' };
17 $error = $record->insert;
19 $error = $new_record->replace($old_record);
21 $error = $record->delete;
23 $error = $record->check;
27 An FS::cust_bill_pay_batch object represents a relationship between a
28 customer's bill and a batch. FS::cust_bill_pay_batch inherits from
29 FS::Record. The following fields are currently supported:
33 =item billpaynum - primary key
35 =item invnum - customer's bill (invoice)
37 =item paybatchnum - entry in cust_pay_batch table
52 Creates a new record. To add the record to the database, see L<"insert">.
54 Note that this stores the hash reference, not a distinct copy of the hash it
55 points to. You can ask the object for a copy with the I<hash> method.
59 sub table { 'cust_bill_pay_batch'; }
63 Adds this record to the database. If there is an error, returns the error,
64 otherwise returns false.
70 Delete this record from the database.
74 =item replace OLD_RECORD
76 Replaces the OLD_RECORD with this one in the database. If there is an error,
77 returns the error, otherwise returns false.
83 Checks all fields to make sure this is a valid example. If there is
84 an error, returns the error, otherwise returns false. Called by the insert
93 $self->ut_numbern('billpaynum')
94 || $self->ut_number('invnum')
95 || $self->ut_number('paybatchnum')
96 || $self->ut_money('amount')
97 || $self->ut_numbern('_date')
99 return $error if $error;
112 L<FS::Record>, schema.html from the base documentation.