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

Merge branch 'dev' into 'next'

feat: added value() method to CalculationValue

See merge request !53
Übergeordnete ae5498ee 219cf6dc
No related branches found
No related tags found
2 Merge Requests!54Next,!53feat: added value() method to CalculationValue
Pipeline #5293 bestanden mit Phase
in 13 Sekunden
......@@ -25,7 +25,7 @@ class CalculationValue
protected QUI\ERP\Currency\Currency $Currency;
/**
* @var int|string
* @var int|float
*/
protected $number = 0;
......@@ -66,6 +66,14 @@ public function __construct($number, QUI\ERP\Currency\Currency $Currency = null,
$this->Currency = QUI\ERP\Defaults::getCurrency();
}
/**
* @return float|int|string
*/
public function value()
{
return $this->number;
}
/**
* Return the CalculationValue with the wanted precision
*
......
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