summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2008-12-16 00:08:56 +0000
committerjeff <jeff>2008-12-16 00:08:56 +0000
commit754f0cc394f5d4e576a9f8d308ceab2ba1bf26da (patch)
tree1e1621313cd35cc098acec31e7a842a77cef174f /FS
parent9bd35093beb9ec4cd59bf84917160dca30b20060 (diff)
proper dates on expire and suspend reasons
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_pkg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 184826452..1bce7d0df 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -486,6 +486,7 @@ sub cancel {
if ($options{'reason'}) {
$error = $self->insert_reason( 'reason' => $options{'reason'},
'action' => $date ? 'expire' : 'cancel',
+ 'date' => $date,
'reason_otaker' => $options{'reason_otaker'},
);
if ( $error ) {
@@ -663,6 +664,7 @@ sub suspend {
if ($options{'reason'}) {
$error = $self->insert_reason( 'reason' => $options{'reason'},
'action' => $date ? 'adjourn' : 'suspend',
+ 'date' => $date,
'reason_otaker' => $options{'reason_otaker'},
);
if ( $error ) {