2 FS::cust_refund - Object method for cust_refund objects
7 $record = create FS::cust_refund \%hash;
8 $record = create FS::cust_refund { '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_refund represents a refund. FS::cust_refund inherits
20 from FS::Record. The following fields are currently supported:
22 refundnum - primary key (assigned automatically for new refunds)
23 crednum - Credit (see the FS::cust_credit manpage)
24 refund - Amount of the refund
25 _date - specified as a UNIX timestamp; see the section on "time" in the perlfunc manpage. Also see
26 the Time::Local manpage and the Date::Parse manpage for conversion functions.
27 payby - `CARD' (credit cards), `BILL' (billing), or `COMP' (free)
28 payinfo - card number, P.O.#, or comp issuer (4-8 lowercase alphanumerics; think username)
29 otaker - order taker (assigned automatically, see the FS::UID manpage)
32 Creates a new refund. To add the refund to the database, see
33 the section on "insert".
36 Adds this refund to the database, and updates the credit
37 (see the FS::cust_credit manpage).
40 Currently unimplemented (accounting reasons).
43 Currently unimplemented (accounting reasons).
46 Checks all fields to make sure this is a valid refund. If
47 there is an error, returns the error, otherwise returns
48 false. Called by the insert method.
51 It doesn't properly override FS::Record yet.
53 Delete and replace methods.
56 the FS::Record manpage, the FS::cust_credit manpage, schema.html
57 from the base documentation.
60 ivan@sisd.com 98-mar-18
62 ->create had wrong tablename ivan@sisd.com 98-jun-16 (finish
65 pod and finish up ivan@sisd.com 98-sep-21