public function updateTotalNetPrice()
    {
        if (!$this->getItems()) {
            return;
        }

        $totalNetPrice = 0;
        /** @var Item $item */
        foreach ($this->getItems() as $item) {
            if (!$item->isRecurringPrice()) {
                $totalNetPrice += $item->getTotalNetPrice();
            }
        }

        $totalNetPrice += self::getNetShippingCosts();

        $this->setTotalNetPrice($totalNetPrice);
    }
public function updateTotalNetPrice()
    {
        if (!$this->getItems()) {
            return;
        }

        $totalNetPrice = 0;
        /** @var Item $item */
        foreach ($this->getItems() as $item) {
            if (!$item->isRecurringPrice()) {
                $totalNetPrice += $item->getTotalNetPrice();
            }
        }

        $totalNetPrice += self::getNetShippingCosts();

        $this->setTotalNetPrice($totalNetPrice);
    }
public function updateTotalNetPrice ( ) { if ( ! $ this -> getItems ( ) ) { return ; } $ totalNetPrice = 0 ; /** @var Item $item */ foreach ( $ this -> getItems ( ) as $ item ) { if ( ! $ item -> isRecurringPrice ( ) ) { $ totalNetPrice += $ item -> getTotalNetPrice ( ) ; } } $ totalNetPrice += self :: getNetShippingCosts ( ) ; $ this -> setTotalNetPrice ( $ totalNetPrice ) ; }
Updates the total net price.
Updates the total net price .