Consistency updates for use of viewpath()
This commit is contained in:
@@ -360,7 +360,7 @@ class Controller_Admin_Service extends Controller_TemplateDefault_Admin {
|
||||
$i = $j = 0;
|
||||
$total = 0;
|
||||
$summary = '';
|
||||
$output = View::factory('service/admin/list/adslbilling_head');
|
||||
$output = View::factory($this->viewpath().'/head');
|
||||
$output .= '<table class="box-left">';
|
||||
foreach ($aso->services(TRUE) as $so) {
|
||||
$po = $so->plugin()->product();
|
||||
@@ -377,7 +377,7 @@ class Controller_Admin_Service extends Controller_TemplateDefault_Admin {
|
||||
|
||||
// Record the the exception if the cost is not expected
|
||||
if (round($po->adsl_supplier_plan->base_cost+$po->adsl_supplier_plan->tax(),2) != $uploaded['amount']) {
|
||||
$summary .= View::factory('service/admin/list/adslbilling_summary')
|
||||
$summary .= View::factory($this->viewpath().'/summary')
|
||||
->set('service',$so)
|
||||
->set('plan',$po)
|
||||
->set('planoverride',$so->plugin()->provided_adsl_plan_id ? TRUE : FALSE)
|
||||
@@ -398,7 +398,7 @@ class Controller_Admin_Service extends Controller_TemplateDefault_Admin {
|
||||
|
||||
$total += $uploaded['amount'];
|
||||
|
||||
$output .= View::factory('service/admin/list/adslbilling_body')
|
||||
$output .= View::factory($this->viewpath().'/body')
|
||||
->set('service',$so)
|
||||
->set('plan',$po)
|
||||
->set('planoverride',$so->plugin()->provided_adsl_plan_id ? TRUE : FALSE)
|
||||
@@ -409,7 +409,7 @@ class Controller_Admin_Service extends Controller_TemplateDefault_Admin {
|
||||
->set('i',$i++%2);
|
||||
}
|
||||
|
||||
$output .= View::factory('service/admin/list/adslbilling_foot')
|
||||
$output .= View::factory($this->viewpath().'/foot')
|
||||
->set('total',$total);
|
||||
|
||||
$output .= '</table>';
|
||||
@@ -417,7 +417,7 @@ class Controller_Admin_Service extends Controller_TemplateDefault_Admin {
|
||||
// Summary Report of remaining CSV items.
|
||||
if (! empty($csv))
|
||||
foreach ($csv as $service => $item) {
|
||||
$summary .= View::factory('service/admin/list/adslbilling_summary_exception')
|
||||
$summary .= View::factory($this->viewpath().'/summary_exception')
|
||||
->set('service',$service)
|
||||
->set('item',$item)
|
||||
->set('i',$j++%2);
|
||||
|
Reference in New Issue
Block a user