src/Invoice/FlattenerInvoiceLines.php
protected function removePriceInfoFromChildren(array $children)
    {
        foreach ($children as &$child) {
            $child[Tag::UnitPrice] = 0;
            $child[Meta::UnitPriceInc] = 0;
            unset($child[Meta::LineAmount]);
            unset($child[Meta::LineAmountInc]);
            unset($child[Meta::LineDiscountAmountInc]);
        }
        return $children;
    }
protected function removePriceInfoFromChildren(array $children)
    {
        foreach ($children as &$child) {
            $child[Tag::UnitPrice] = 0;
            $child[Meta::UnitPriceInc] = 0;
            unset($child[Meta::LineAmount]);
            unset($child[Meta::LineAmountInc]);
            unset($child[Meta::LineDiscountAmountInc]);
        }
        return $children;
    }
protected function removePriceInfoFromChildren ( array $ children ) { foreach ( $ children as & $ child ) { $ child [ Tag :: UnitPrice ] = 0 ; $ child [ Meta :: UnitPriceInc ] = 0 ; unset ( $ child [ Meta :: LineAmount ] ) ; unset ( $ child [ Meta :: LineAmountInc ] ) ; unset ( $ child [ Meta :: LineDiscountAmountInc ] ) ; } return $ children ; }
Removes price info from all children.

This can prevent that amounts appear twice on the invoice. This can only
be done if all children have the same vat rate as the parent, otherwise
the price (and vat) info should remain on the children and be removed
from the parent.

@param array[] $children
The child invoice lines.

@return array[]
The child invoice lines with price info removed.
Removes price info from all children .