From efac4a4045b9311fc68bbca284919d24bb1a3c2e Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 8 Oct 2007 21:06:30 +0000 Subject: add cust_bill_owed as an implicit condition (whew), and make sure it is added on migrations (also: fixed implicit conditions like this which only apply to a subset of eventtables) --- FS/FS/part_event/Condition/cust_bill_owed.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FS') diff --git a/FS/FS/part_event/Condition/cust_bill_owed.pm b/FS/FS/part_event/Condition/cust_bill_owed.pm index e90d3db28..5e582ef69 100644 --- a/FS/FS/part_event/Condition/cust_bill_owed.pm +++ b/FS/FS/part_event/Condition/cust_bill_owed.pm @@ -16,6 +16,12 @@ sub eventtable_hashref { }; } +sub implicit_flag { 30; } + +sub remove_warning { + 'Are you sure you want to remove this condition? Doing so will allow this event to run even for invoices which have no outstanding balance. Perhaps you want to reset "Amount owed over" to 0 instead of removing the condition entirely?'; #better error msg? +} + sub option_fields { ( 'owed' => { 'label' => 'Amount owed over', -- cgit v1.2.1