Uploaded image for project: 'ASTPP Community'
  1. ASTPP Community
  2. ASTPPCOM-259

$cost always logged as 0 in astpp.cdr.php

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Need to move logger line below assignment of $cost? As is $cost has the value of 0 that's assigned at the top of file.

      // Calculate parent cost if customer have any parent
      $parent_cost = ($parentid > 0) ? calc_cost ( $dataVariable, $origination_rate [$parentid], $logger, $decimal_points ) : $provider_cost;
      $logger->log ( "Parent - Debit :" . $debit . " Cost : " . $cost . " Provider Cost : " . $parent_cost );

      // Initialize final cost variable to use for billing
      $cost = ($parent_cost > 0) ? $parent_cost : $provider_cost;

      Thanks

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexheylin alexheylin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: