src/WooCommerce/Invoice/Creator.php
protected function getFeeLine($item)
    {
        $quantity = $item->get_quantity();
        $feeEx = $item->get_total() / $quantity;
        $feeVat = $item->get_total_tax() / $quantity;

        $result = array(
                Tag::Product => $this->t($item->get_name()),
                Tag::UnitPrice => $feeEx,
                Tag::Quantity => $item->get_quantity(),
            ) + $this->getVatRangeTags($feeVat, $feeEx, $this->precision, $this->precision);

        return $result;
    }
protected function getFeeLine($item)
    {
        $quantity = $item->get_quantity();
        $feeEx = $item->get_total() / $quantity;
        $feeVat = $item->get_total_tax() / $quantity;

        $result = array(
                Tag::Product => $this->t($item->get_name()),
                Tag::UnitPrice => $feeEx,
                Tag::Quantity => $item->get_quantity(),
            ) + $this->getVatRangeTags($feeVat, $feeEx, $this->precision, $this->precision);

        return $result;
    }
protected function getFeeLine ( $ item ) { $ quantity = $ item -> get_quantity ( ) ; $ feeEx = $ item -> get_total ( ) / $ quantity ; $ feeVat = $ item -> get_total_tax ( ) / $ quantity ; $ result = array ( Tag :: Product => $ this -> t ( $ item -> get_name ( ) ) , Tag :: UnitPrice => $ feeEx , Tag :: Quantity => $ item -> get_quantity ( ) , ) + $ this -> getVatRangeTags ( $ feeVat , $ feeEx , $ this -> precision , $ this -> precision ) ; return $ result ; }
Returns an invoice line for 1 fee line.

@param \WC_Order_Item_Fee $item

@return array
The invoice line for the given fee line.
Returns an invoice line for 1 fee line .