getOrderDocuments example



    public function getList($identifiers)
    {
        $orders = parent::getList($identifiers);
        $documents = $this->getDocuments($orders);

        $namespace = $this->snippets->getNamespace('backend/static/order_status');

        foreach ($orders as &$order) {
            $order['orderStateName'] = $namespace->get($order['orderStateKey']);
            $order['orderDocuments'] = $this->getOrderDocuments($documents$order);
            $order['supplierId'] = explode(',', $order['supplierId'] ?? '');
            $order['articleNumber'] = explode(',', $order['articleNumber'] ?? '');
        }

        return $orders;
    }

    protected function createListQuery()
    {
        $query = $this->entityManager->createQueryBuilder();
        $query->select([
            
Home | Imprint | This part of the site doesn't use cookies.