Added internal billing NBE email for external products
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
class Product extends mfBaseModel {
|
||||
private $owner;
|
||||
private $productgroup;
|
||||
private $producttech;
|
||||
private $sla;
|
||||
@@ -45,6 +46,12 @@ class Product extends mfBaseModel {
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
|
||||
if($name == "owner") {
|
||||
if(!$this->external_id) return null;
|
||||
$this->owner = new Address($this->external_id);
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
if($name == "networks") {
|
||||
$this->networks = [];
|
||||
$productNetworks = ProductNetworkModel::search(['product_id' => $this->id]);
|
||||
|
||||
@@ -32,7 +32,7 @@ class ProductController extends mfBaseController {
|
||||
$filter = $_SESSION[MFAPPNAME.'-Product-filter'];
|
||||
}
|
||||
}
|
||||
//var_dump($filter);
|
||||
|
||||
$this->layout->set("filter", $filter);
|
||||
$filter = $this->getPreparedFilter($filter);
|
||||
|
||||
@@ -46,7 +46,7 @@ class ProductController extends mfBaseController {
|
||||
if(is_numeric($this->request->s)) {
|
||||
$pagination['start'] = intval($this->request->s);
|
||||
}
|
||||
//var_dump($filter);exit;
|
||||
|
||||
$pagination['maxItems'] = ProductModel::count($filter);
|
||||
$this->layout()->set("pagination", $pagination);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user