From 3213e7c1e281dbdba8baa980028482df3b9c1873 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 25 Dec 2005 00:52:27 +0000 Subject: add invoice event to suspend only when greater than N amount --- httemplate/edit/part_bill_event.cgi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'httemplate') diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi index 64a82493a..cc6bb47d2 100755 --- a/httemplate/edit/part_bill_event.cgi +++ b/httemplate/edit/part_bill_event.cgi @@ -94,6 +94,9 @@ sub select_agentnum { ''; } +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 ". '', + 'weight' => 10, + }, 'suspend-if-pkgpart' => { 'name' => 'Suspend packages', 'code' => '$cust_main->suspend_if_pkgpart(%%%if_pkgpart%%%);', -- cgit v1.2.1