Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mod_feature_capping.pm [2017-01-23 08:05] – [SMRadius-AutoTopup-$TYPE-NotifyTemplate] nkukardmod_feature_capping.pm [2017-02-03 09:22] (current) – [SMRadius-AutoTopup-$TYPE-Threshold] nkukard
Line 155: Line 155:
 Please note that you have [% usage.limit - usage.total %]Mbyte available on username [% user.username %]. We added another [% autotopup.toAdd %] automatic topup(s) totalling [% autotopup.toAddAmount %]Mbyte to your username. Your automatic topup usage is [% autotopup.added + autotopup.toAddAmount %]Mbyte of [% autotopup.limit ? autotopup.limit : '-no-limit-' %]Mbyte. Please note that you have [% usage.limit - usage.total %]Mbyte available on username [% user.username %]. We added another [% autotopup.toAdd %] automatic topup(s) totalling [% autotopup.toAddAmount %]Mbyte to your username. Your automatic topup usage is [% autotopup.added + autotopup.toAddAmount %]Mbyte of [% autotopup.limit ? autotopup.limit : '-no-limit-' %]Mbyte.
 [% ELSE %] [% ELSE %]
-We cannot add another [% autotopup.amount %]Mbyte to your username as you have reached your automatic topup limit of [% autotopup.limit %]Mbyte. Your total usage is [% autotopup.usage.total %]Mbyte.+We cannot add another [% autotopup.amount %]Mbyte to your username as you have reached your automatic topup limit of [% autotopup.limit %]Mbyte. Your total usage is [% usage.total %]Mbyte.
 [% END %] [% END %]
  
Line 164: Line 164:
  
 ==== SMRadius-AutoTopup-$TYPE-Threshold ==== ==== SMRadius-AutoTopup-$TYPE-Threshold ====
 +
 +This attribute dictates when the usage falls below this amount a topup should be added.
  
 The threshold can be set to 0, which means only when the total limit has been exceeded will an auto-topup be added. The threshold can be set to 0, which means only when the total limit has been exceeded will an auto-topup be added.