From 667cee1c0b352573f80663eae5be2de8ad8a93de Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 25 Jan 2010 17:41:31 +0000 Subject: [PATCH] initial svc_pbx implementation, RT#7051 --- FS/FS/Mason.pm | 1 + FS/FS/Schema.pm | 14 ++++++++++++++ FS/MANIFEST | 2 ++ httemplate/edit/part_svc.cgi | 1 + 4 files changed, 18 insertions(+) diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 7e9827cac..09f857add 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -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 ) { diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index ab46d97eb..0ffc5bd42 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -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' => { diff --git a/FS/MANIFEST b/FS/MANIFEST index 74b06a88c..0063e005f 100644 --- a/FS/MANIFEST +++ b/FS/MANIFEST @@ -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 diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 79703435c..20bc27780 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -19,6 +19,7 @@ Service definitions are the templates for items you offer to your customers.
  • svc_www - Virtual domain website
  • svc_broadband - Broadband/High-speed Internet service (always-on)
  • svc_phone - Customer phone numbers +
  • svc_pbx - Customer PBXs
  • svc_external - Externally-tracked service