Creating shipping CSV

This commit is contained in:
Frank Schubert
2021-10-21 23:58:47 +02:00
parent a6b9b45a87
commit 1ab3019d37
7 changed files with 113 additions and 26 deletions

View File

@@ -11,28 +11,24 @@ class Cpeprovisioning extends mfBaseModel {
public function getProperty($name) {
if($this->$name == null) {
if(!$this->id) {
return null;
}
if($name == "cpeprovisioning") {
$this->cpeprovisioning = CpeprovisioningModel::getFirst(["orderproduct_id" => $this->id]);
return $this->cpeprovisioning;
if($name == "orderproduct") {
$this->orderproduct = new OrderProduct($this->orderproduct_id);
return $this->orderproduct;
}
if($name == "creator") {
if($this->id) {
$this->creator = new User($this->create_by);
return $this->creator;
} else {
return null;
}
$this->creator = new User($this->create_by);
return $this->creator;
}
if($name == "editor") {
if($this->id) {
$this->editor = new User($this->edit_by);
return $this->editor;
} else {
return null;
}
$this->editor = new User($this->edit_by);
return $this->editor;
}
$classname = ucfirst($name);