Added termination select to Product/Form
This commit is contained in:
@@ -10,6 +10,20 @@ class Building extends mfBaseModel {
|
||||
private $pipeworker;
|
||||
private $terminations;
|
||||
|
||||
public function getAddress($singelLine = false) {
|
||||
if(!$this->id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$address = $this->street."\n".$this->zip." ".$this->city;
|
||||
if($singelLine) {
|
||||
$address = str_replace("\n", " ", $address);
|
||||
}
|
||||
|
||||
return $address;
|
||||
}
|
||||
|
||||
|
||||
public function getNewObjectCode() {
|
||||
if(!$this->zip) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user