[freeside-commits] freeside/httemplate/edit part_bill_event.cgi,
1.29, 1.30
Ivan,,,
ivan at wavetail.420.am
Thu Jun 29 08:20:01 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv19398
Modified Files:
part_bill_event.cgi
Log Message:
percentage late fees too
Index: part_bill_event.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_bill_event.cgi,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- part_bill_event.cgi 31 Jan 2006 11:02:54 -0000 1.29
+++ part_bill_event.cgi 29 Jun 2006 15:19:59 -0000 1.30
@@ -139,13 +139,21 @@
tie my %events, 'Tie::IxHash',
'fee' => {
- 'name' => 'Late fee',
+ 'name' => 'Late fee (flat)',
'code' => '$cust_main->charge( %%%charge%%%, \'%%%reason%%%\' );',
'html' =>
'Amount <INPUT TYPE="text" SIZE="7" NAME="charge" VALUE="%%%charge%%%">'.
'<BR>Reason <INPUT TYPE="text" NAME="reason" VALUE="%%%reason%%%">',
'weight' => 10,
},
+ 'fee_percent' => {
+ 'name' => 'Late fee (percentage)',
+ 'code' => '$cust_main->charge( sprintf(\'%.2f\', $cust_bill->owed * %%%percent%%% / 100 ), \'%%%reason%%%\' );',
+ 'html' =>
+ 'Percent <INPUT TYPE="text" SIZE="2" NAME="percent" VALUE="%%%percent%%%">%'.
+ '<BR>Reason <INPUT TYPE="text" NAME="reason" VALUE="%%%reason%%%">',
+ 'weight' => 10,
+ },
'suspend' => {
'name' => 'Suspend',
'code' => '$cust_main->suspend();',
More information about the freeside-commits
mailing list