System information
Credit from the reseller account is deducted when he add credit for the users (create new users with some default credit, increase user credit, generate
recharge PIN’s).
Tariff edit is not enabled by default in this mode unless you set the allow_tariffedit or the user rights field
(in thus case the resellers could create low price tariff
lists so their users could call in excess)
Other configuration options related to billing:
allow_createresellers = -1; //-1: default, 0=no,1=yes (allow resellers to create sub resellers)
allow_tariffedit = -1; //-1: default, 0=no,1=yes (allow resellers to edit tariffs. This ca be influenced also by the tb_user.rights field)
If defearlypay is set to 2 and allow_createresellers is left with the default value (-1) then tariff edit is forbidden by default.
You can also edit reseller rights by user via the "rights" field in the users (tb_users) table if the allow_xxx fields above are left with the default values (-1)
(On the "Users and devices" form, click on the ... button and type "Rights". Then modify it after your needs for the resellers):
8: can’t edit tariffs and can’t add resellers
10: can’t edit tariffs
11: can’t create tariffs with lower price
12: can’t add resellers
30: can add resellers and tariffs
Other options:
Creditelapseunit
Maxcreditelapsedays
Defaultcredit
feature_creditcards
feature_transfercredit
feature_creditedit
feature_creditfornewusers
currencyprecision
feature_seeowntariffs
feature_createtariffs
feature_recharge
feature_hasbasetariffs
Reseller programs can work in two different ways:










