[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 8d758c9c75d2e9ac0dcebb1f308c5e252cca45e1
Ivan
ivan at 420.am
Wed Oct 9 15:16:46 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 8d758c9c75d2e9ac0dcebb1f308c5e252cca45e1 (commit)
from 3995bf01d2f4bd9c10eb0b209579efd803ccaf89 (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 8d758c9c75d2e9ac0dcebb1f308c5e252cca45e1
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Oct 9 15:16:45 2013 -0700
add svc_cable.ordernum, RT#22009
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 513e859..8c1c081 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -3702,7 +3702,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 fef4f79..4c071d6 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