Moved GB/MB configuration for ADSL into database

This commit is contained in:
Deon George
2013-11-18 15:18:50 +11:00
parent a711e70b60
commit 89deb9c97b
7 changed files with 49 additions and 23 deletions

View File

@@ -26,8 +26,8 @@ class Task_Adsl_Trafficcharge extends Minion_Task {
if ($x=$so->plugin()->traffic_excess($date)) {
$po = $so->plugin()->plan();
$cost = $po->cost_extra();
$allowance = $po->allowance(array(),FALSE,TRUE,1000);
$used = $so->plugin()->traffic_month($date,FALSE,1000);
$allowance = $po->allowance(array(),FALSE,TRUE,TRUE);
$used = $so->plugin()->traffic_month($date,FALSE,TRUE);
foreach ($x as $k=>$v) {
$co = ORM::factory('Charge');