fix foreign key cust_bill_pkg_void.pkgnum error, RT#26018, RT#13971
authorIvan Kohler <ivan@freeside.biz>
Fri, 15 Nov 2013 22:57:06 +0000 (14:57 -0800)
committerIvan Kohler <ivan@freeside.biz>
Fri, 15 Nov 2013 22:57:06 +0000 (14:57 -0800)
FS/FS/Schema.pm

index 1794c12..ebf4f37 100644 (file)
@@ -1138,9 +1138,10 @@ sub tables_hashref {
                           { columns    => [ 'invnum' ],
                             table      => 'cust_bill_void',
                           },
-                          { columns    => [ 'pkgnum' ],
-                            table      => 'cust_pkg',
-                          },
+                          #pkgnum 0 and -1 are used for special things
+                          #{ columns    => [ 'pkgnum' ],
+                          #  table      => 'cust_pkg',
+                          #},
                           { columns    => [ 'pkgpart_override' ],
                             table      => 'part_pkg',
                             references => [ 'pkgpart' ],