From 41347384d05b3dd73f73a45857f645733b0cb2c7 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 3 Feb 2014 18:44:22 -0800 Subject: [PATCH] added part_pkg.agent_pkgpartid, RT#27214 --- FS/FS/Schema.pm | 3 ++- FS/FS/part_pkg.pm | 1 + httemplate/edit/part_pkg.cgi | 16 ++++++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 17fa2d8d9..728b0ccbb 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -2958,11 +2958,12 @@ sub tables_hashref { 'successor', 'int', 'NULL', '', '', '', 'family_pkgpart','int', 'NULL', '', '', '', 'delay_start', 'int', 'NULL', '', '', '', + 'agent_pkgpartid', 'varchar', 'NULL', 20, '', '', ], 'primary_key' => 'pkgpart', 'unique' => [], 'index' => [ [ 'promo_code' ], [ 'disabled' ], [ 'classnum' ], - [ 'agentnum' ], ['no_auto'], + [ 'agentnum' ], ['no_auto'], ['agent_pkgpartid'], ], 'foreign_keys' => [ { columns => [ 'classnum' ], diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index 26cdf705a..8f8287b5f 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -703,6 +703,7 @@ sub check { || $self->ut_numbern('delay_start') || $self->ut_foreign_keyn('successor', 'part_pkg', 'pkgpart') || $self->ut_foreign_keyn('family_pkgpart', 'part_pkg', 'pkgpart') + || $self->ut_alphan('agent_pkgpartid') || $self->SUPER::check ; return $error if $error; diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 3fee36b36..b35dc02d4 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -224,12 +224,6 @@ }, }, - { type => 'tablebreak-tr-title', - value => 'Line-item revenue recogition', #better name? - }, - { field=>'pay_weight', type=>'text', size=>6 }, - { field=>'credit_weight', type=>'text', size=>6 }, - ( $conf->exists('cust_pkg-show_fcc_voice_grade_equivalent') ? ( { type => 'tablebreak-tr-title', @@ -243,6 +237,16 @@ : () ), + { type => 'tablebreak-tr-title', + value => 'External Links', #better name? + }, + { field=>'agent_pkgpartid', type=>'text', size=>21 }, + + { type => 'tablebreak-tr-title', + value => 'Line-item revenue recogition', #better name? + }, + { field=>'pay_weight', type=>'text', size=>6 }, + { field=>'credit_weight', type=>'text', size=>6 }, { type => 'columnend' }, -- 2.11.0