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

fix: #78

Übergeordneter 907707bb
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -4,7 +4,6 @@
* This file contains package_quiqqer_products_ajax_products_calcNettoPrice
*/
use QUI\ERP\Products\Utils\Calc;
use QUI\ERP\Tax\TaxEntry;
use QUI\ERP\Tax\TaxType;
use QUI\ERP\Tax\Utils as TaxUtils;
......@@ -53,7 +52,7 @@ function ($price, $formatted, $vat) {
$vat = $TaxEntry->getValue();
}
$vat = ($vat / 100) + 1;
$vat = ($vat / 100) + 1;
$price = $price / $vat;
if (isset($formatted) && $formatted) {
......
......@@ -16,7 +16,9 @@
function ($price, $vat, $currency) {
$Currency = CurrencyHandler::getCurrency($currency);
$price = Price::validatePrice($price);
$vat = floatval($vat);
/* auskommentiert weil: quiqqer/erp/-/issues/78#note_144725
if (empty($vat)) {
$Area = QUI\ERP\Defaults::getArea();
$TaxType = QUI\ERP\Tax\Utils::getTaxTypeByArea($Area);
......@@ -24,6 +26,7 @@ function ($price, $vat, $currency) {
$vat = $TaxEntry->getValue();
}
*/
$nettoSum = $price;
$nettoSumFormatted = $Currency->format($price);
......
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