Changeset 1041

Show
Ignore:
Timestamp:
09/17/08 09:12:48 (4 months ago)
Author:
rach
Message:

Correct bug:conflict between free package , low balance and charge
description: if you have connect or disconnect charge and ... and you don't have enough credit to call but you have free minutes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/Class.RateEngine.php

    r1019 r1041  
    470470                This mininum credit should be calculated based on the destination, and the minimum billing block. 
    471471                */ 
    472                 if ($credit < $A2B->agiconfig['min_credit_2call']){ 
     472                if ($credit < $A2B->agiconfig['min_credit_2call'] && !$this -> freecall[$K]){ 
    473473                        return "ERROR CT1";  //NO ENOUGH CREDIT TO CALL THIS NUMBER 
    474474                } 


Google