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

feat!: change of ErpEntityInterface

The ErpEntityInterface interface has been expanded to include customer files and the reversal method.
ErpEntityInterface can also be "deleted". However, these cannot be deleted correctly in 90% of cases, hence reversal.

BREAKING CHANGE: ErpEntityInterface extended
Übergeordneter 0903ebe9
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!80fix: phpstan fixes + breaking changes,!79fix: phpstan fixes + breaking changes
......@@ -99,4 +99,23 @@ public function setCustomer(array|QUI\Interfaces\Users\User $User);
* @return array
*/
public function toArray(): array;
/**
* Cancel the entity
* (Reversal, Storno, Cancel)
*
* @param string $reason
* @param User|null $PermissionUser
* @return ?ErpEntityInterface
*/
public function reversal(
string $reason = '',
QUI\Interfaces\Users\User $PermissionUser = null
): ?ErpEntityInterface;
public function addCustomerFile(string $fileHash, array $options = []): void;
public function clearCustomerFiles(): void;
public function getCustomerFiles(): array;
}
......@@ -60,7 +60,7 @@ protected function table(): string
/**
* Return all entities which are connected to this process
*
* @return array
* @return ErpEntityInterface[]
*/
public function getEntities(): array
{
......
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