src/Invoice/FlattenerInvoiceLines.php
protected function removePriceInfoFromParent(array $parent)
    {
        $parent[Tag::UnitPrice] = 0;
        $parent[Meta::UnitPriceInc] = 0;
        unset($parent[Meta::LineAmount]);
        unset($parent[Meta::LineAmountInc]);
        unset($parent[Meta::LineDiscountAmountInc]);
        return $parent;
    }
protected function removePriceInfoFromParent(array $parent)
    {
        $parent[Tag::UnitPrice] = 0;
        $parent[Meta::UnitPriceInc] = 0;
        unset($parent[Meta::LineAmount]);
        unset($parent[Meta::LineAmountInc]);
        unset($parent[Meta::LineDiscountAmountInc]);
        return $parent;
    }
protected function removePriceInfoFromParent ( array $ parent ) { $ parent [ Tag :: UnitPrice ] = 0 ; $ parent [ Meta :: UnitPriceInc ] = 0 ; unset ( $ parent [ Meta :: LineAmount ] ) ; unset ( $ parent [ Meta :: LineAmountInc ] ) ; unset ( $ parent [ Meta :: LineDiscountAmountInc ] ) ; return $ parent ; }
Removes price info from the parent.

This can prevent that amounts appear twice on the invoice.

@param array $parent
The parent invoice line.

@return array
The parent invoice line with price info removed.
Removes price info from the parent .