Billing Rates

Discussion in 'General' started by goncalo, Apr 23, 2007.

  1. goncalo

    Joined:
    Apr 23, 2007
    Messages:
    1
    Likes Received:
    0
    Hi,

    Can someone tellme how can i change my tarif plans in billing to tax the calls in minutes?

    Thanks

    Gonçalo
     
  2. createinfor

    Joined:
    Aug 5, 2007
    Messages:
    4
    Likes Received:
    0
    Hi,

    I have the same problem. I would like to know if I can tax calls per minute or 1/2 minute or even 1/4 minute. I do not understand the logic of the Rate offset field. Any help?
    Thanks.
     
  3. scotth

    Joined:
    Aug 21, 2007
    Messages:
    10
    Likes Received:
    0
  4. latrellwalker

    Joined:
    Jul 27, 2011
    Messages:
    1
    Likes Received:
    0
    For the rate by min in Elastix billing, do the following:

    Go to /var/www/html/modules/billing_report
    Edit index.php

    Locate the following lines (249 and 260):

    $charge=(($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
    $charge=(($cdr[8]/60)*$rate)+$rate_offset;


    And replace by:

    $charge=(ceil($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
    $charge=(ceil($cdr[8]/60)*$rate)+$rate_offset;
     

Share This Page