Document/Builder/DocumentBuilder.php
protected function buildGoodsLines(Document\DocumentInterface $document)
    {
        foreach ($document->getSale()->getItems() as $item) {
            $this->buildGoodLine($item, $document);
        }
    }
protected function buildGoodsLines(Document\DocumentInterface $document)
    {
        foreach ($document->getSale()->getItems() as $item) {
            $this->buildGoodLine($item, $document);
        }
    }
Builds the document's goods lines.

@param Document\DocumentInterface $document