[freeside-commits] branch FREESIDE_3_BRANCH updated. 8577c7ca4210f58be1d0188bd0d45d44f899ec40

Mark Wells mark at 420.am
Tue Jul 8 17:08:06 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  8577c7ca4210f58be1d0188bd0d45d44f899ec40 (commit)
      from  05feecc7ab0ebc0d6b26fe06a09f25d08805062d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8577c7ca4210f58be1d0188bd0d45d44f899ec40
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Jul 8 17:08:02 2014 -0700

    avoid foreign key errors when reconciling NENA2 batches, #14049

diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index c2d9595..71442b6 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -4551,7 +4551,7 @@ sub tables_hashref {
         'exportnum',      'int',     '',      '', '', '',
         '_date',          'int',     '',      '', '', '',
         'status',     'varchar', 'NULL',      32, '', '',
-        'statustext', 'varchar', 'NULL', $char_d, '', '',
+        'statustext',    'text', 'NULL',      '', '', '',
       ],
       'primary_key'  => 'batchnum',
       'unique'       => [],
@@ -4581,10 +4581,6 @@ sub tables_hashref {
                             table      => 'export_batch',
                             references => [ 'batchnum' ]
                           },
-                          { columns    => [ 'svcnum' ],
-                            table      => 'cust_svc',
-                            references => [ 'svcnum' ]
-                          },
                         ],
     },
 
diff --git a/FS/FS/export_batch_item.pm b/FS/FS/export_batch_item.pm
index accb3f1..e442748 100644
--- a/FS/FS/export_batch_item.pm
+++ b/FS/FS/export_batch_item.pm
@@ -104,7 +104,6 @@ sub check {
     || $self->ut_number('batchnum')
     || $self->ut_foreign_key('batchnum', 'export_batch', 'batchnum')
     || $self->ut_number('svcnum')
-    || $self->ut_foreign_key('svcnum', 'cust_svc', 'svcnum')
     || $self->ut_enum('action',
       [ qw(insert delete replace suspend unsuspend relocate) ]
     )
diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm
index 71d753a..ad67ba2 100644
--- a/FS/FS/part_export/nena2.pm
+++ b/FS/FS/part_export/nena2.pm
@@ -355,7 +355,6 @@ sub process {
     # ignore items that have no data to add to the batch
     next if $item->action eq 'suspend' or $item->action eq 'unsuspend';
     
-    my $svcnum = $item->svcnum;
     my $data = $item->data;
     %hash = %{ $item_format->parse($data) };
     my $phonenum = $hash{npa} . $hash{calling_number};

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Schema.pm            |    6 +-----
 FS/FS/export_batch_item.pm |    1 -
 FS/FS/part_export/nena2.pm |    1 -
 3 files changed, 1 insertion(+), 7 deletions(-)




More information about the freeside-commits mailing list