2 FS::cust_pay - Object methods for cust_pay objects
7 $record = create FS::cust_pay \%hash;
8 $record = create FS::cust_pay { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
19 An FS::cust_pay object represents a payment. FS::cust_pay
20 inherits from FS::Record. The following fields are currently
23 paynum - primary key (assigned automatically for new payments)
24 invnum - Invoice (see the FS::cust_bill manpage)
25 paid - Amount of this payment
26 _date - specified as a UNIX timestamp; see the section on "time" in the perlfunc manpage. Also see
27 the Time::Local manpage and the Date::Parse manpage for conversion functions.
28 payby - `CARD' (credit cards), `BILL' (billing), or `COMP' (free)
29 payinfo - card number, P.O.#, or comp issuer (4-8 lowercase alphanumerics; think username)
30 paybatch - text field for tracking card processing
33 Creates a new payment. To add the payment to the databse,
34 see the section on "insert".
37 Adds this payment to the databse, and updates the invoice
38 (see the FS::cust_bill manpage).
41 Currently unimplemented (accounting reasons).
44 Currently unimplemented (accounting reasons).
47 Checks all fields to make sure this is a valid payment. If
48 there is an error, returns the error, otherwise returns
49 false. Called by the insert method.
52 It doesn't properly override FS::Record yet.
54 Delete and replace methods.
57 the FS::Record manpage, the FS::cust_bill manpage, schema.html
58 from the base documentation.
61 ivan@voicenet.com 97-jul-1 - 25 - 29
63 new api ivan@sisd.com 98-mar-13
65 pod ivan@sisd.com 98-sep-21