From: jeff Date: Tue, 1 Jul 2008 07:04:13 +0000 (+0000) Subject: you shouldn't keep 'em separated X-Git-Tag: root_of_webpay_support~514 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=ebd720750b01ea3fbdef6f09dd1446771b56f672;p=freeside.git you shouldn't keep 'em separated --- diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 457d25786..f6c6e6a04 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2144,26 +2144,6 @@ sub order { ''; } -=item insert_reason - -Associates this package with a (suspension or cancellation) reason (see -L, possibly inserting a new reason on the fly (see -L). - -Available options are: - -=over 4 - -=item reason - can be set to a cancellation reason (see L), either a reasonnum of an existing reason, or passing a hashref will create a new reason. The hashref should have the following keys: typenum - Reason type (see L, reason - Text of the new reason. - -=item date - -=back - -If there is an error, returns the error, otherwise returns false. - -=cut - =item bulk_change PKGPARTS_ARYREF, REMOVE_PKGNUMS_ARYREF [ RETURN_CUST_PKG_ARRAYREF ] PKGPARTS is a list of pkgparts specifying the the billing item definitions (see @@ -2222,6 +2202,30 @@ sub bulk_change { ''; } +=item insert_reason + +Associates this package with a (suspension or cancellation) reason (see +L, possibly inserting a new reason on the fly (see +L). + +Available options are: + +=over 4 + +=item reason - can be set to a cancellation reason (see L), either a reasonnum of an existing reason, or passing a hashref will create a new reason. The hashref should have the following keys: typenum - Reason type (see L, reason - Text of the new reason. + +=item otaker_reason - the access_user (see L) providing the reason + +=item date - a unix timestamp + +=item action - the action (cancel, susp, adjourn, expire) associated with the reason + +=back + +If there is an error, returns the error, otherwise returns false. + +=cut + sub insert_reason { my ($self, %options) = @_;