[freeside-commits] freeside/httemplate/edit part_bill_event.cgi,
1.26, 1.27
Ivan,,,
ivan at wavetail.420.am
Sat Dec 24 16:52:30 PST 2005
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv15320/httemplate/edit
Modified Files:
part_bill_event.cgi
Log Message:
add invoice event to suspend only when greater than N amount
Index: part_bill_event.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_bill_event.cgi,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- part_bill_event.cgi 27 Nov 2005 21:59:24 -0000 1.26
+++ part_bill_event.cgi 25 Dec 2005 00:52:27 -0000 1.27
@@ -94,6 +94,9 @@
'</SELECT>';
}
+my $conf = new FS::Conf;
+my $money_char = $conf->config('money_char');
+
#this is pretty kludgy right here.
tie my %events, 'Tie::IxHash',
@@ -110,6 +113,12 @@
'code' => '$cust_main->suspend();',
'weight' => 10,
},
+ 'suspend' => {
+ 'name' => 'Suspend if balance (this invoice and previous) over',
+ 'code' => '$cust_bill->cust_suspend_if_balance_over( %%%balanceover%%% );',
+ 'html' => " $money_char ". '<INPUT TYPE="text" SIZE="7" NAME="balanceover" VALUE="%%%balanceover%%%">',
+ 'weight' => 10,
+ },
'suspend-if-pkgpart' => {
'name' => 'Suspend packages',
'code' => '$cust_main->suspend_if_pkgpart(%%%if_pkgpart%%%);',
More information about the freeside-commits
mailing list