code: protected function buildGoodsLines(Document\DocumentInterface $document)
      {
          foreach ($document->getSale()->getItems() as $item) {
              $this->buildGoodLine($item, $document);
          }
      }
docs: Builds the document's goods lines.
  
  @param Document\DocumentInterface $document