Added customer_number and serice pin

This commit is contained in:
Frank Schubert
2021-08-26 20:33:00 +02:00
parent df127c08d9
commit d77642f9de
9 changed files with 96 additions and 6 deletions

View File

@@ -51,6 +51,20 @@ class Address extends mfBaseModel {
}
public function generateServicePin() {
if(!$this->customer_number) {
return false;
}
$num1 = rand(65, 90);
$num2 = rand(65, 90);
$c1 = chr($num1);
$c2 = chr($num2);
$spin = $c1.$c2.$this->customer_number;
return $spin;
}
public function getProperty($name) {
if($this->$name == null) {