summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_bill_event.cgi
diff options
context:
space:
mode:
authorivan <ivan>2005-12-25 00:52:27 +0000
committerivan <ivan>2005-12-25 00:52:27 +0000
commit3213e7c1e281dbdba8baa980028482df3b9c1873 (patch)
tree7096d01bf15dafbdfdc707d28ee6d2d88761acad /httemplate/edit/part_bill_event.cgi
parent9cc2ba7cbf26eefbd1d01a2f98b47a24a8766428 (diff)
add invoice event to suspend only when greater than N amount
Diffstat (limited to 'httemplate/edit/part_bill_event.cgi')
-rwxr-xr-xhttemplate/edit/part_bill_event.cgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi
index 64a8249..cc6bb47 100755
--- a/httemplate/edit/part_bill_event.cgi
+++ b/httemplate/edit/part_bill_event.cgi
@@ -94,6 +94,9 @@ sub select_agentnum {
'</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 @@ tie my %events, 'Tie::IxHash',
'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%%%);',