if (strcasecmp(node->getName(), "FeeChargeType") == 0)
{
- if (ParseUnsignedInRange(node->getValue(0), 0, 2, &feeChargeType) != 0)
+ if (ParseUnsignedInRange(node->getValue(0), 0, 3, &feeChargeType) != 0)
{
strError = "Incorrect FeeChargeType value: \'" + string(node->getValue(0)) + "\'";
return -1;
if (c + credit >= fee)
property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge");
break;
+ case 3:
+ if (c >= 0)
+ property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge");
+ break;
}
ResetPassiveTime();
}
SetPrepaidTraff();
}
break;
+ case 3:
+ if (c >= 0)
+ {
+ property.cash.Set(c - fee, sysAdmin, login, store, "Subscriber fee charge");
+ SetPrepaidTraff();
+ }
+ break;
}
}
//-----------------------------------------------------------------------------