<?php

/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sylius\Component\Order\Model;
use Sylius\Component\Resource\Model\ResourceInterface;

/**
 * @author Mateusz Zalewski <mateusz.zalewski@lakion.com>
 */
interface OrderItemUnitInterface extends ResourceInterface, AdjustableInterface
{
    /**
     * @return int
     */
    public function getTotal();

    /**
     * @return OrderItemInterface
     */
    public function getOrderItem();
}

<?php

/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sylius\Component\Order\Model;

use Sylius\Component\Resource\Model\ResourceInterface;

/**
 * @author Mateusz Zalewski <mateusz.zalewski@lakion.com>
 */
interface OrderItemUnitInterface extends ResourceInterface, AdjustableInterface
{
    /**
     * @return int
     */
    public function getTotal();

    /**
     * @return OrderItemInterface
     */
    public function getOrderItem();
}

Change ``UnitPercentageDiscountAction`` to count discount on unit
[Core] Change ``UnitPercentageDiscountAction`` to count discount on unit
