From 45c6b7021b30c49742b578a2f3ba13fb35f5222c Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 21 Dec 2009 02:00:54 +0000 Subject: have 'Bill now' link cancel expired (and suspend adjourned) packages, and catch and return errors in all cases, RT#6627 --- FS/FS/cust_main.pm | 83 +++++++++++++++++++++++++++++++++++++----------- httemplate/misc/bill.cgi | 13 ++------ 2 files changed, 67 insertions(+), 29 deletions(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 1b663c9ae..83487e403 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2382,9 +2382,11 @@ sub classname { =item bill_and_collect Cancels and suspends any packages due, generates bills, applies payments and -cred +credits, and applies collection events to run cards, send bills and notices, +etc. -Warns on errors (Does not currently: If there is an error, returns the error, otherwise returns false.) +By default, warns on errors and continues with the next operation (but see the +"fatal" flag below). Options are passed as name-value pairs. Currently available options are: @@ -2410,6 +2412,12 @@ Used in conjunction with the I