Skip to content
Code-Schnipsel Gruppen Projekte
Commit 586e539e erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev' into 'next'

feat: erp entity interface extended

See merge request !74
Übergeordnete 7e401cf1 bb93b71e
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!75feat: erp entity interface extended,!74feat: erp entity interface extended
Pipeline-Nr. 6419 bestanden
......@@ -8,6 +8,7 @@
use QUI\ERP\Accounting\Calculations;
use QUI\ERP\Address as ErpAddress;
use QUI\ERP\User as ErpUser;
use QUI\Interfaces\Users\User;
interface ErpEntityInterface
{
......@@ -19,9 +20,30 @@ public function getAttributes();
public function setAttribute(string $key, $value);
//endregion
/**
* return the internal database id
*
* @return int
*/
public function getId(): int;
/**
* Return the uuid hash of the entity
*
* @return string
*/
public function getUUID(): string;
/**
* Return the entity number
* returns the number that this entity has. a number is, for example, an invoice number or booking number. this number is not the id.
*
* @return string
*/
public function getPrefixedNumber(): string;
/**
* Get the customer of the erp entity
*
......@@ -41,7 +63,7 @@ public function getCurrency(): QUI\ERP\Currency\Currency;
*
* @return ArticleList|ArticleListUnique
*/
public function getArticles();
public function getArticles(): ArticleList|ArticleListUnique;
/**
* Get the price calculation object of the erp entity
......@@ -60,7 +82,7 @@ public function getDeliveryAddress(): ?ErpAddress;
/**
* Set a customer to the erp entity
*
* @param array|QUI\ERP\User|QUI\Interfaces\Users\User $User
* @param array|User $User
*/
public function setCustomer($User);
public function setCustomer(array|QUI\Interfaces\Users\User $User);
}
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