From 2c816f314a8f3cc46e72e31f34ed97b4e11d0449 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 4 Aug 1999 12:13:27 +0000 Subject: new HTML manpages --- htdocs/docs/man/FS/cust_credit.html | 126 ++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 htdocs/docs/man/FS/cust_credit.html (limited to 'htdocs/docs/man/FS/cust_credit.html') diff --git a/htdocs/docs/man/FS/cust_credit.html b/htdocs/docs/man/FS/cust_credit.html new file mode 100644 index 000000000..5683fcd0d --- /dev/null +++ b/htdocs/docs/man/FS/cust_credit.html @@ -0,0 +1,126 @@ + + +FS::cust_credit - Object methods for cust_credit records + + + + + + + + + + +
+

+

NAME

+

+FS::cust_credit - Object methods for cust_credit records + +

+


+

SYNOPSIS

+

+

  use FS::cust_credit;
+
+

+

  $record = new FS::cust_credit \%hash;
+  $record = new FS::cust_credit { 'column' => 'value' };
+
+

+

  $error = $record->insert;
+
+

+

  $error = $new_record->replace($old_record);
+
+

+

  $error = $record->delete;
+
+

+

  $error = $record->check;
+
+

+


+

DESCRIPTION

+

+An FS::cust_credit object represents a credit. FS::cust_credit inherits +from FS::Record. The following fields are currently supported: + +

+
crednum - primary key (assigned automatically for new credits)
+
custnum - customer (see FS::cust_main)
+
amount - amount of the credit
+
credited - how much of this credit that is still outstanding, which is +amount minus all refunds (see FS::cust_refund).
+
_date - specified as a UNIX timestamp; see perlfunc/"time". Also see +Time::Local and Date::Parse for conversion functions.
+
otaker - order taker (assigned automatically, see FS::UID)
+
reason - text
+
+

+


+

METHODS

+
+
new HASHREF
+

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

insert
+

+Adds this credit to the database (``Posts'' the credit). If there is an +error, returns the error, otherwise returns false. + +

+When adding new invoices, credited must be amount (or null, in which case +it is automatically set to amount). + +

delete
+

+Currently unimplemented. + +

replace OLD_RECORD
+

+Replaces the OLD_RECORD with this one in the database. If there is an +error, returns the error, otherwise returns false. + +

+Only credited may be changed. Credited is normally updated by creating and +inserting a refund (see FS::cust_refund). + +

check
+

+Checks all fields to make sure this is a valid credit. If there is an +error, returns the error, otherwise returns false. Called by the insert and +replace methods. + +

+

+


+

VERSION

+

+$Id: cust_credit.html,v 1.1 1999-08-04 12:13:27 ivan Exp $ + +

+


+

BUGS

+

+The delete method. + +

+


+

SEE ALSO

+

+FS::Record, FS::cust_refund, FS::cust_bill, schema.html from the base documentation. + + + + -- cgit v1.2.1