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

index e359fc9..6807383 100644 (file)
@@ -551,6 +551,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 ) {
@@ -751,6 +752,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 ) {