[freeside-commits] branch FREESIDE_3_BRANCH updated. 85ef9f4033bd1f1214d7815960bc3f4d7d183192

Ivan ivan at 420.am
Wed Oct 9 15:16:45 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  85ef9f4033bd1f1214d7815960bc3f4d7d183192 (commit)
      from  c472510ffbe145ae090981bc1b0be9b644de6a37 (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 85ef9f4033bd1f1214d7815960bc3f4d7d183192
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Oct 9 15:16:44 2013 -0700

    add svc_cable.ordernum, RT#22009

diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 33c2a10..bf4723e 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -4164,7 +4164,7 @@ sub tables_hashref {
       'columns' => [
         'svcnum',        'int',     '',      '', '', '', 
         'providernum',   'int', 'NULL',      '', '', '',
-        # XXX "Circuit ID/Order number"
+        'ordernum',  'varchar', 'NULL', $char_d, '', '',
         'modelnum',      'int', 'NULL',      '', '', '',
         'serialnum', 'varchar', 'NULL', $char_d, '', '',
         'mac_addr',  'varchar', 'NULL',      12, '', '', 
diff --git a/FS/FS/svc_cable.pm b/FS/FS/svc_cable.pm
index 596f699..6575a0b 100644
--- a/FS/FS/svc_cable.pm
+++ b/FS/FS/svc_cable.pm
@@ -84,7 +84,7 @@ sub table_info {
                                               $p ? $p->provider : '';
                                             },
                      },
-    #XXX "Circuit ID/Order number"
+    'ordernum'    => 'Order number', #XXX "Circuit ID/Order number"
     'modelnum'    => { label             => 'Model',
                        type              => 'select-cable_model',
                        disable_inventory => 1,
@@ -143,6 +143,7 @@ sub check {
   my $error = 
        $self->ut_numbern('svcnum')
     || $self->ut_foreign_key('providernum', 'cable_provider', 'providernum')
+    || $self->ut_alphan('ordernum')
     || $self->ut_foreign_key('modelnum', 'cable_model', 'modelnum')
     || $self->ut_alpha('serialnum')
     || $self->ut_mac_addr('mac_addr')

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

Summary of changes:
 FS/FS/Schema.pm    |    2 +-
 FS/FS/svc_cable.pm |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list