Added icon for customer_type to Order list
This commit is contained in:
@@ -4,6 +4,7 @@ class Order extends mfBaseModel {
|
||||
private $owner;
|
||||
private $billingaddress;
|
||||
private $products;
|
||||
private $customer_type;
|
||||
private $contracts;
|
||||
private $terminations;
|
||||
private $journals;
|
||||
@@ -196,6 +197,17 @@ class Order extends mfBaseModel {
|
||||
return $this->products;
|
||||
}
|
||||
|
||||
if($name == "customer_type") {
|
||||
$this->customer_type = "residential";
|
||||
foreach($this->getProperty("products") as $order_product) {
|
||||
if($order_product->product->producttech->customer_type == "business") {
|
||||
$this->customer_type = "business";
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $this->customer_type;
|
||||
}
|
||||
|
||||
if($name == "contracts") {
|
||||
foreach($this->getProperty("products") as $product) {
|
||||
//var_dump($product);
|
||||
|
||||
Reference in New Issue
Block a user