diff options
author | ivan <ivan> | 2011-04-11 05:00:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-11 05:00:02 +0000 |
commit | 24fd6ba22b04349af4606b997827b4dbab4cc1f3 (patch) | |
tree | 7b322a796e78878c4f58b0ef21a616a8bbb3fb74 | |
parent | 4dfd652efeda65ee26be10d7941a25a4317f6d57 (diff) |
taqua accountcodes, RT#12181
-rw-r--r-- | FS/FS/Conf.pm | 9 | ||||
-rw-r--r-- | FS/FS/Schema.pm | 11 |
2 files changed, 16 insertions, 4 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index d9ced6c7e..7530784d9 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3948,12 +3948,19 @@ and customer address. Include units.', { 'key' => 'cdr-taqua-da_rewrite', - 'section' => '', + 'section' => 'telephony', 'description' => 'For the Taqua CDR format, a comma-separated list of directory assistance 800 numbers. Any CDRs with these numbers as "BilledNumber" will be rewritten to the "CallingPartyNumber" (and CallType "12") on import.', 'type' => 'text', }, { + 'key' => 'cdr-taqua-accountcode_rewrite', + 'section' => 'telephony', + 'description' => 'For the Taqua CDR format, pull accountcodes from secondary CDRs with matching sessionNumber.', + 'type' => 'checkbox', + }, + + { 'key' => 'cust_pkg-show_autosuspend', 'section' => 'UI', 'description' => 'Show package auto-suspend dates. Use with caution for now; can slow down customer view for large insallations.', diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 223ed32d5..51b4d6815 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -2538,7 +2538,7 @@ sub tables_hashref { # fields for unitel/RSLCOM/convergent that don't map well to asterisk # defaults # though these are now used elsewhere: - # charged_party, upstream_price, rated_price, carrierid + # charged_party, upstream_price, rated_price, carrierid, cdrtypenum ### #cdr_type: Usage = 1, S&E = 7, OC&C = 8 @@ -2584,10 +2584,14 @@ sub tables_hashref { #an indexed place to put big numbers 'cdrid', 'bigint', 'NULL', '', '', '', + #for taqua accountcode rewriting, for starters + 'sessionnum', 'int', 'NULL', '', '', '', + 'subscriber', 'varchar', 'NULL', $char_d, '', '', + #old - 'cdrbatch', 'varchar', 'NULL', 255, '', '', + 'cdrbatch', 'varchar', 'NULL', 255, '', '', #new - 'cdrbatchnum', 'int', 'NULL', '', '', '', + 'cdrbatchnum', 'int', 'NULL', '', '', '', ], 'primary_key' => 'acctid', @@ -2595,6 +2599,7 @@ sub tables_hashref { 'index' => [ [ 'calldate' ], [ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ], [ 'accountcode' ], [ 'carrierid' ], [ 'cdrid' ], + [ 'sessionnum' ], [ 'freesidestatus' ], [ 'freesiderewritestatus' ], [ 'cdrbatch' ], [ 'cdrbatchnum' ], ], |