summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-01-04 05:49:41 +0000
committerivan <ivan>2007-01-04 05:49:41 +0000
commit5de869e584a684259123f5eb729567a1df1de3e5 (patch)
tree4e89943b3c5b9c93e7f3333149f3b766385942ec
parentd03713862ac9f098841dca79df26da544ae062db (diff)
invoice event to credit out a customer's balance, presumably as bad debt
-rwxr-xr-xhttemplate/edit/part_bill_event.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi
index 77aa82887..c80d51c8f 100755
--- a/httemplate/edit/part_bill_event.cgi
+++ b/httemplate/edit/part_bill_event.cgi
@@ -206,6 +206,13 @@ Invoice Event #<% $hashref->{eventpart} ? $hashref->{eventpart} : "(NEW)" %>
% 'weight' => 30,
% },
%
+% 'credit' => {
+% 'name' => "Create and apply a credit for the customer's balance (i.e. write off as bad debt)",
+% 'code' => '$cust_main->credit( $cust_main->balance, \'%%%reason%%%\' );',
+% 'html' => '<INPUT TYPE="text" NAME="reason" VALUE="%%%reason%%%">',
+% 'weight' => 30,
+% },
+%
% 'realtime-card' => {
% 'name' => 'Run card with a <a href="http://search.cpan.org/search?mode=module&query=Business%3A%3AOnlinePayment">Business::OnlinePayment</a> realtime gateway',
% 'code' => '$cust_bill->realtime_card();',