From 51984ac3d3da3006809c6866fdecd4ad83610731 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Jul 2001 07:36:04 +0000 Subject: templates!!! --- httemplate/docs/man/FS/cust_refund.html | 108 ++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 httemplate/docs/man/FS/cust_refund.html (limited to 'httemplate/docs/man/FS/cust_refund.html') diff --git a/httemplate/docs/man/FS/cust_refund.html b/httemplate/docs/man/FS/cust_refund.html new file mode 100644 index 000000000..39ed14de4 --- /dev/null +++ b/httemplate/docs/man/FS/cust_refund.html @@ -0,0 +1,108 @@ + + +FS::cust_refund - Object method for cust_refund objects + + + + + + + + + + + +
+

+

NAME

+

FS::cust_refund - Object method for cust_refund objects

+

+


+

SYNOPSIS

+
+  use FS::cust_refund;
+
+  $record = new FS::cust_refund \%hash;
+  $record = new FS::cust_refund { 'column' => 'value' };
+
+  $error = $record->insert;
+
+  $error = $new_record->replace($old_record);
+
+  $error = $record->delete;
+
+  $error = $record->check;
+

+


+

DESCRIPTION

+

An FS::cust_refund represents a refund: the transfer of money to a customer; +equivalent to a negative payment (see the FS::cust_pay manpage). FS::cust_refund +inherits from FS::Record. The following fields are currently supported:

+
+
refundnum - primary key (assigned automatically for new refunds)
+
+
crednum - Credit (see the FS::cust_credit manpage)
+
+
refund - Amount of the refund
+
+
_date - specified as a UNIX timestamp; see perlfunc/``time''. Also see +the Time::Local manpage and the Date::Parse manpage for conversion functions.
+
+
payby - `CARD' (credit cards), `BILL' (billing), or `COMP' (free)
+
+
payinfo - card number, P.O.#, or comp issuer (4-8 lowercase alphanumerics; think username)
+
+
otaker - order taker (assigned automatically, see the FS::UID manpage)
+
+
+

+


+

METHODS

+
+
new HASHREF
+
+Creates a new refund. To add the refund to the database, see insert. +

+
insert
+
+Adds this refund to the database, and updates the credit (see +the FS::cust_credit manpage). +

+
delete
+
+Currently unimplemented (accounting reasons). +

+
replace OLD_RECORD
+
+Currently unimplemented (accounting reasons). +

+
check
+
+Checks all fields to make sure this is a valid refund. If there is an error, +returns the error, otherwise returns false. Called by the insert method. +

+

+


+

VERSION

+

$Id: cust_refund.html,v 1.1 2001-07-30 07:36:03 ivan Exp $

+

+


+

BUGS

+

Delete and replace methods.

+

+


+

SEE ALSO

+

the FS::Record manpage, the FS::cust_credit manpage, schema.html from the base documentation.

+ + + + -- cgit v1.2.1