[freeside-devel] cust_refund?
ivan
ivan at 420.am
Wed Feb 7 11:07:03 PST 2001
On Mon, Feb 05, 2001 at 12:00:52AM -0800, Jason Spence wrote:
> Hi -
>
> I'm doing work on creating a proration system for Freeside. I'm a
> little confused on the role of cust_refund (as opposed to
> cust_credit).
Accounting is fun. Think "bill" vs. "payment". A bill is to a payment as
a credit is to a refund. Also, a bill is to a credit as a payment is to a
refund.
cust_bill - an invoice, the declaration that a customer owes you money.
cust_pay - a payment, the transfer of funds from the customer to you
cust_credit - a credit, the declaration that you owe a customer money. the
equivalent of a negative cust_bill record.
cust_refund - a refund, the transfer of funds from you to the customer.
equivalent of a negative cust_pay record.
HTH
> I can't seem to find a place in the code where
> cust_refund objects are created, only a place where they are printed
> (in cust_main.cgi). Can someone enlighten me?
Current web interface doesn't have a way to create refunds. The hooks are
in htdocs/edit/cust_credit.cgi and htdocs/edit/process/cust_credit.cgi.
Since a refund corresponds to an actual trasnfer of money to the customer
- either via a credit card transaction, cutting the customer a check, or
handing them cash - creating a cust_refund record should be integrated
with your internal methods for doing such a thing.
--
meow
_ivan
More information about the freeside-devel
mailing list