proper dates on expire and suspend reasons
authorjeff <jeff>
Tue, 16 Dec 2008 00:08:56 +0000 (00:08 +0000)
committerjeff <jeff>
Tue, 16 Dec 2008 00:08:56 +0000 (00:08 +0000)
FS/FS/cust_pkg.pm

index 1848264..1bce7d0 100644 (file)
@@ -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 ) {