initial svc_pbx implementation, RT#7051
authorivan <ivan>
Mon, 25 Jan 2010 17:41:31 +0000 (17:41 +0000)
committerivan <ivan>
Mon, 25 Jan 2010 17:41:31 +0000 (17:41 +0000)
FS/FS/Mason.pm
FS/FS/Schema.pm
FS/MANIFEST
httemplate/edit/part_svc.cgi

index 7e9827c..09f857a 100644 (file)
@@ -226,6 +226,7 @@ if ( -e $addl_handler_use_file ) {
   use FS::cust_category;
   use FS::prospect_main;
   use FS::contact;
+  use FS::svc_pbx;
   # Sammath Naur
 
   if ( $FS::Mason::addl_handler_use ) {
index ab46d97..0ffc5bd 100644 (file)
@@ -2612,6 +2612,20 @@ sub tables_hashref {
       'unique'      => [ [ 'pkgnum', 'refnum' ] ],
       'index'       => [ [ 'pkgnum' ], [ 'refnum' ] ],
     },
+
+    'svc_pbx' => {
+      'columns' => [
+        'svcnum',         'int',     '',      '', '', '', 
+        'id',             'int', 'NULL',      '', '', '', 
+        'title',      'varchar', 'NULL', $char_d, '', '', 
+        'max_extensions', 'int', 'NULL',      '', '', '',
+      ],
+      'primary_key' => 'svcnum',
+      'unique' => [],
+      'index'  => [ [ 'id' ] ],
+    },
+
+
     # name type nullability length default local
 
     #'new_table' => {
index 74b06a8..0063e00 100644 (file)
@@ -474,3 +474,5 @@ t/contact_email.t
 FS/prospect_main.pm
 t/prospect_main.t
 FS/o2m_Common.pm
+FS/svc_pbx.pm
+t/svc_pbx.t
index 7970343..20bc277 100755 (executable)
@@ -19,6 +19,7 @@ Service definitions are the templates for items you offer to your customers.
     <LI>svc_www - Virtual domain website
     <LI>svc_broadband - Broadband/High-speed Internet service (always-on)
     <LI>svc_phone - Customer phone numbers
+    <LI>svc_pbx - Customer PBXs
     <LI>svc_external - Externally-tracked service
 <!--   <LI>svc_charge - One-time charges (Partially unimplemented)
        <LI>svc_wo - Work orders (Partially unimplemented)