Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 4d5c4444 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: getCurrentStatusId is not available at every erp entity

Übergeordneter a07008ff
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!124Next 3.x
......@@ -2,17 +2,25 @@
namespace QUI\ERP;
use function method_exists;
trait ErpEntityData
{
public function getReferenceData(): array
{
$currentStatus = null;
if (method_exists($this, 'getCurrentStatusId')) {
$currentStatus = $this->getCurrentStatusId();
}
return [
'id' => $this->getUUID(),
'id_str' => $this->getPrefixedNumber(), // old
'prefixedNumber' => $this->getPrefixedNumber(),
'uuid' => $this->getUUID(),
'globalProcessId' => $this->getGlobalProcessId(),
'currentStatusId' => $this->getCurrentStatusId(),
'currentStatusId' => $currentStatus
];
}
}
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren