Partner productchange done

This commit is contained in:
Frank Schubert
2024-07-30 20:01:29 +02:00
parent 48f3866bc7
commit a0cd6847b7
9 changed files with 147 additions and 24 deletions

View File

@@ -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;