summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-09-23 13:16:34 -0700
committerIvan Kohler <ivan@freeside.biz>2015-09-23 13:16:34 -0700
commit1c83c4c02ba6d35ffbabe71bfd4cf6e70afbb894 (patch)
tree01beb5148ce3adbd747d4665eb7f68c0a0d89d26
parent60ca6141ee3efd2479dc89615504433a0d950356 (diff)
import a2billing username as charged_party, RT#32909
-rwxr-xr-xFS/bin/freeside-cdr-a2billing-import3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/bin/freeside-cdr-a2billing-import b/FS/bin/freeside-cdr-a2billing-import
index 923f5fbb1..a8469e744 100755
--- a/FS/bin/freeside-cdr-a2billing-import
+++ b/FS/bin/freeside-cdr-a2billing-import
@@ -91,7 +91,7 @@ my %disposition = (
);
my @cols = (
- 'cc_call.id as id', 'cc_card.username as username',
+ "$table.id as id", 'cc_card.username as username',
qw( sessionid
starttime stoptime sessiontime real_sessiontime
terminatecauseid
@@ -101,6 +101,7 @@ my @cols = (
);
my $sql = 'SELECT '.join(',', @cols). " FROM $table".
+ " LEFT JOIN cc_card ON ( $table.card_id = cc_card.id ) ".
' WHERE freesidestatus IS NULL' .
($start && " AND starttime >= '$start'") .
($end && " AND starttime < '$end'") ;