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