$class_o->eanPrintedSet($order['orders_id']);
            }
            $pid = $item['products_id'];
            $aid = $item['products_articles_id'];
            $ean = $class_ean->getEAN($pid, $aid);
            $qty = $item['products_quantity'];
            $ean_printed = $item['ean_printed'];
            $barcode_id = "JG-{$oiid}";
            break;
        case 'DP':
            use_class('depot_orders');
            $class_do = new depot_orders();
            $item = $class_do->retrieveDetail($oiid);
            if ($counter_on || is_null($item['ean_printed']) || $item['ean_printed'] == '') {
                $class_do->printConfirmAdd($oiid);
                $class_do->eanPrintedSet($oiid);
            }
            $pid = $item['products_id'];
            $aid = $item['articles_id'];
            $ean = $item['products_ean'];
            $qty = $item['quantity'];
            $ean_printed = $item['ean_printed'];
            $barcode_id = "DP-{$oiid}";
            break;
    }
    if (statusIsCancelled($item['status'])) {
        $cancel = true;
        $result['status'] = 'CANCEL';
    }
} elseif (strlen($product_input) == 13) {
    $pean = $class_ean->getProductArticle($product_input);