Partner productchange done
This commit is contained in:
@@ -241,6 +241,17 @@ class Contract extends mfBaseModel {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function countActiveLinks($with_credit = false) {
|
||||
$links = $this->getProperty("links");
|
||||
|
||||
if(is_array($links) && count($links)) {
|
||||
return count($links);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
public function generateMatchcode() {
|
||||
$owner_address = $this->getProperty("owner")->street . ", " . $this->getProperty("owner")->zip . " " . $this->getProperty("owner")->city;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user