insert_reason only worked if you passed in an existing reason, the code to insert...
authorjayce <jayce>
Wed, 17 Oct 2007 16:07:59 +0000 (16:07 +0000)
committerjayce <jayce>
Wed, 17 Oct 2007 16:07:59 +0000 (16:07 +0000)
FS/FS/cust_pkg.pm

index a37abe2..e09b8ab 100644 (file)
@@ -1724,7 +1724,7 @@ sub insert_reason {
 
   my $cust_pkg_reason =
     new FS::cust_pkg_reason({ 'pkgnum'    => $self->pkgnum,
-                              'reasonnum' => $options{'reason'}
+                              'reasonnum' => $reasonnum
                              'otaker'    => $otaker,
                              'date'      => $options{'date'}
                                               ? $options{'date'}