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

fix: added recalc to the ArticleList; fix: double set of user and currency considered

Übergeordneter a37702ba
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -117,6 +117,10 @@ public function __construct(array $attributes = [])
*/
public function setUser(QUI\Interfaces\Users\User $User)
{
if ($this->User === $User) {
return;
}
$this->calculated = false;
$this->User = $User;
......@@ -170,6 +174,10 @@ public function getCurrency()
*/
public function setCurrency(QUI\ERP\Currency\Currency $Currency)
{
if ($this->Currency === $Currency) {
return;
}
$this->Currency = $Currency;
$this->currencyData = [
......@@ -262,6 +270,15 @@ public function toUniqueList()
return new ArticleListUnique($this->toArray());
}
/**
* @param null $Calc
*/
public function recalculate($Calc = null)
{
$this->calculated = false;
$this->calc($Calc);
}
/**
* @param null|Calc $Calc
* @return $this
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren