- $price(0,1,'price_setup',TRUE)); ?> setup
- - plugin()->display('speed'); ?> Speed
+ - plugin()->adsl_supplier_plan->display('speed'); ?> Speed
- plugin()->base_down_peak/1000; ?>GB Peak Downloads
plugin()->base_down_offpeak) : ?>
- plugin()->base_down_offpeak/1000; ?>GB OffPeak Downloads
diff --git a/modules/adsl/views/product/plugin/adsl/feature_summary.php b/modules/adsl/views/product/plugin/adsl/feature_summary.php
index 59186ea9..ba5d04b7 100644
--- a/modules/adsl/views/product/plugin/adsl/feature_summary.php
+++ b/modules/adsl/views/product/plugin/adsl/feature_summary.php
@@ -4,7 +4,7 @@
- Speed
- - display('speed'); ?>
+ - adsl_supplier_plan->display('speed'); ?>
- Peak Downloads Included
- base_down_peak/1000; ?> GB, excess display('extra_down_peak'); ?>/GB.
diff --git a/modules/checkout/classes/Checkout/Plugin/Paypal.php b/modules/checkout/classes/Checkout/Plugin/Paypal.php
index 2c5ac346..2daf3b26 100644
--- a/modules/checkout/classes/Checkout/Plugin/Paypal.php
+++ b/modules/checkout/classes/Checkout/Plugin/Paypal.php
@@ -154,7 +154,7 @@ abstract class Checkout_Plugin_Paypal extends Checkout_Plugin {
$po->fees_amt = $cno->data['mc_fee'];
$po->total_amt = $cno->data['mc_gross'];
$po->date_payment = strtotime($cno->data['payment_date']);
- $po->checkout_plugin_id = $this->co->id;
+ $po->checkout_id = $this->co->id;
$po->notes = $cno->data['txn_id'];
$po->save();
diff --git a/modules/checkout/classes/Model/Checkout.php b/modules/checkout/classes/Model/Checkout.php
index d4ea268f..d3a3d1f7 100644
--- a/modules/checkout/classes/Model/Checkout.php
+++ b/modules/checkout/classes/Model/Checkout.php
@@ -11,7 +11,7 @@
*/
class Model_Checkout extends ORM_OSB {
protected $_has_many = array(
- 'account'=>array('through'=>'account_billing','foreign_key'=>'checkout_plugin_id'),
+ 'account'=>array('through'=>'account_billing','foreign_key'=>'checkout_id'),
'payment'=>array(),
);
diff --git a/modules/payment/classes/Payment/Bulk/Ezypay.php b/modules/payment/classes/Payment/Bulk/Ezypay.php
index 4ad3a7a9..a6fea85a 100644
--- a/modules/payment/classes/Payment/Bulk/Ezypay.php
+++ b/modules/payment/classes/Payment/Bulk/Ezypay.php
@@ -78,9 +78,9 @@ class Payment_Bulk_Ezypay {
// @todo Hack - since the reports dont show how the payment was made.
// @todo Put this in a config file, in the mean time.
if ($array[7] == 1.05)
- $payments[$array[3]]->checkout_plugin_id = 2;
+ $payments[$array[3]]->checkout_id = 2;
else
- $payments[$array[3]]->checkout_plugin_id = 4;
+ $payments[$array[3]]->checkout_id = 4;
}
$result = '';
diff --git a/modules/payment/views/payment/admin/add_view.php b/modules/payment/views/payment/admin/add_view.php
index 07640fa4..f11a1a21 100644
--- a/modules/payment/views/payment/admin/add_view.php
+++ b/modules/payment/views/payment/admin/add_view.php
@@ -12,7 +12,7 @@
Method |
- list_select(),$po->checkout_plugin_id,array('label'=>'Payment Method','required')); ?> |
+ list_select(),$po->checkout_id,array('label'=>'Payment Method','required')); ?> |
Amount |
diff --git a/modules/service/classes/Controller/Admin/Service.php b/modules/service/classes/Controller/Admin/Service.php
index 8b9356a2..e90cb97a 100644
--- a/modules/service/classes/Controller/Admin/Service.php
+++ b/modules/service/classes/Controller/Admin/Service.php
@@ -597,10 +597,10 @@ class Controller_Admin_Service extends Controller_Service {
foreach ($svs as $a=>$so) {
// Number of services
- if (! isset($stats[$so->product->plugin()->speed]['c']))
- $stats[$so->product->plugin()->speed]['c'] = 0;
+ if (! isset($stats[$so->product->plugin()->adsl_supplier_plan->speed]['c']))
+ $stats[$so->product->plugin()->adsl_supplier_plan->speed]['c'] = 0;
- $stats[$so->product->plugin()->speed]['c']++;
+ $stats[$so->product->plugin()->adsl_supplier_plan->speed]['c']++;
$ts++;
// Amount of traffic
@@ -612,10 +612,10 @@ class Controller_Admin_Service extends Controller_Service {
$a = $i;
}
- if (! isset($stats[$so->product->plugin()->speed]['d'][$a]))
- $stats[$so->product->plugin()->speed]['d'][$a] = 0;
+ if (! isset($stats[$so->product->plugin()->adsl_supplier_plan->speed]['d'][$a]))
+ $stats[$so->product->plugin()->adsl_supplier_plan->speed]['d'][$a] = 0;
- $stats[$so->product->plugin()->speed]['d'][$a]++;
+ $stats[$so->product->plugin()->adsl_supplier_plan->speed]['d'][$a]++;
}
if (count($stats)) {
diff --git a/modules/service/classes/Controller/Reseller/Service.php b/modules/service/classes/Controller/Reseller/Service.php
index e5a13a48..a67c0466 100644
--- a/modules/service/classes/Controller/Reseller/Service.php
+++ b/modules/service/classes/Controller/Reseller/Service.php
@@ -52,7 +52,7 @@ class Controller_Reseller_Service extends Controller_Service {
foreach (ORM::factory('Account')->where_active()->where('id','IN',$this->ao->RTM->customers($this->ao->RTM))->find_all() as $ao)
if ($ao->has_any('group',array($go)))
foreach ($ao->service->list_active() as $so)
- if (! $so->service_billing->checkout_plugin_id)
+ if (! $so->service_billing->checkout_id)
array_push($svs,$so);
if ($svs)
@@ -82,7 +82,7 @@ class Controller_Reseller_Service extends Controller_Service {
foreach ($co->account->where('account.id','IN',$this->ao->RTM->customers($this->ao->RTM))->find_all() as $ao)
foreach ($ao->service->list_active() as $so)
- if ($so->service_billing->checkout_plugin_id == $co->id)
+ if ($so->service_billing->checkout_id == $co->id)
array_push($svs,$so);
if ($svs)
diff --git a/modules/service/classes/Model/Service/Billing.php b/modules/service/classes/Model/Service/Billing.php
index a80bc78d..6f0503ff 100644
--- a/modules/service/classes/Model/Service/Billing.php
+++ b/modules/service/classes/Model/Service/Billing.php
@@ -14,7 +14,7 @@ class Model_Service_Billing extends ORM_OSB {
// Relationships
protected $_has_one = array(
- 'checkout'=>array('far_key'=>'checkout_plugin_id','foreign_key'=>'id'),
+ 'checkout'=>array('far_key'=>'checkout_id','foreign_key'=>'id'),
);
}
?>