[freeside-commits] branch master updated. b198322c5f3c1d26674ff12f93abf0d55e09f731
Ivan
ivan at 420.am
Wed Oct 9 15:16:43 PDT 2013
The branch, master has been updated
via b198322c5f3c1d26674ff12f93abf0d55e09f731 (commit)
from ce89af6a65868fd0f5cde05ef866611aacad39aa (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 b198322c5f3c1d26674ff12f93abf0d55e09f731
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Oct 9 15:16:42 2013 -0700
add svc_cable.ordernum, RT#22009
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index e44b74e..59b1fc5 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -4273,7 +4273,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