fix matching by classnum, #72355
authorMark Wells <mark@freeside.biz>
Wed, 7 Sep 2016 03:15:46 +0000 (20:15 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 7 Sep 2016 03:19:02 +0000 (20:19 -0700)
bin/taqua-accountcode-rewrite

index 386fc9d..e6d5790 100755 (executable)
@@ -116,7 +116,7 @@ while (my $cdr = $cursor->fetch) {
         # source number, and start and end dates
         $detail = qsearchs('cust_bill_pkg_detail', {
           'amount'     => $primary->rated_price,
-          'classnum'   => $cdr->rated_classnum,
+          'classnum'   => $primary->rated_classnum,
           'duration'   => $primary->rated_seconds,
           'startdate'  => $primary->startdate,
           'format'     => 'C',