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

fix: #22

Übergeordneter 746c8ac1
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -187,8 +187,18 @@ public function getShippingType()
*/
public function getPriceDisplay()
{
$PriceFactor = $this->toPriceFactor();
// display is incl vat
$vat = $PriceFactor->getVat();
$price = $this->getPrice();
if ($vat) {
$price = $price + ($price * ($vat / 100));
}
$Price = new QUI\ERP\Money\Price(
$this->getPrice(),
$price,
QUI\ERP\Defaults::getCurrency()
);
......@@ -731,6 +741,10 @@ public function toPriceFactor(
$Locale = null,
QUI\ERP\Order\AbstractOrder $Order = null
) {
if ($Order === null) {
$Order = $this->Order;
}
$PriceFactor = new QUI\ERP\Products\Utils\PriceFactor([
'title' => QUI::getLocale()->get('quiqqer/shipping', 'shipping.order.title', [
'shipping' => $this->getTitle($Locale)
......
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