public function getSumOfLineItems()
    {
        $amount = 0;

        foreach ($this->getLineItems() as $lineItem)
        {
            $amount += $lineItem->getPrice()*$lineItem->getQuantity();
        }

        return round($amount, 2);
    }
public function getSumOfLineItems()
    {
        $amount = 0;

        foreach ($this->getLineItems() as $lineItem)
        {
            $amount += $lineItem->getPrice()*$lineItem->getQuantity();
        }

        return round($amount, 2);
    }
public function getSumOfLineItems ( ) { $ amount = 0 ; foreach ( $ this -> getLineItems ( ) as $ lineItem ) { $ amount += $ lineItem -> getPrice ( ) * $ lineItem -> getQuantity ( ) ; } return round ( $ amount , 2 ) ; }
Get sum of line items

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-05-13

@return float
Get sum of line items