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

refactor: deprecated const removed

Übergeordneter eb4afefa
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -362,23 +362,23 @@ public function verifyUser(User $User)
public function toPriceFactor($Locale = null)
{
switch ($this->getAttribute('discount_type')) {
case Calc::CALCULATION_PERCENTAGE:
$calculation = Calc::CALCULATION_PERCENTAGE;
case QUI\ERP\Accounting\Calc::CALCULATION_PERCENTAGE:
$calculation = QUI\ERP\Accounting\Calc::CALCULATION_PERCENTAGE;
break;
default:
case Calc::CALCULATION_COMPLEMENT:
$calculation = Calc::CALCULATION_COMPLEMENT;
case QUI\ERP\Accounting\Calc::CALCULATION_COMPLEMENT:
$calculation = QUI\ERP\Accounting\Calc::CALCULATION_COMPLEMENT;
break;
}
switch ($this->getAttribute('price_calculation_basis')) {
case Calc::CALCULATION_BASIS_NETTO:
$basis = Calc::CALCULATION_BASIS_NETTO;
case QUI\ERP\Accounting\Calc::CALCULATION_BASIS_NETTO:
$basis = QUI\ERP\Accounting\Calc::CALCULATION_BASIS_NETTO;
break;
default:
$basis = Calc::CALCULATION_BASIS_CURRENTPRICE;
$basis = QUI\ERP\Accounting\Calc::CALCULATION_BASIS_CURRENTPRICE;
}
$Plugin = QUI::getPackage('quiqqer/products');
......
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