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

Merge branch 'dev'

Übergeordnete 6f6b69ce cc86ce60
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
1 Merge Request!140Update 'next-4.x' with latest changes from 'main'
......@@ -16,7 +16,15 @@
function ($price, $vat, $currency) {
$Currency = CurrencyHandler::getCurrency($currency);
$price = Price::validatePrice($price);
if (empty($vat)) {
$Area = QUI\ERP\Defaults::getArea();
$TaxType = QUI\ERP\Tax\Utils::getTaxTypeByArea($Area);
$TaxEntry = QUI\ERP\Tax\Utils::getTaxEntry($TaxType, $Area);
$vat = $TaxEntry->getValue();
}
$nettoSum = $price;
$nettoSumFormatted = $Currency->format($price);
$sum = $price * (($vat + 100) / 100);
......
......@@ -497,6 +497,10 @@ public function addPriceFactor($PriceFactor)
$vat = key($this->vatArray);
}
if ($PriceFactor->getVat()) {
$vat = $PriceFactor->getVat();
}
$PriceFactor->setVat($vat);
$brutto = $netto * ((100 + $vat) / 100);
......
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