retrieve($_REQUEST['record']); $sale = new EcmSale(); $sale->retrieve($invoice->so_id.'1'); if ($sale->order_source != 'allegro') { echo "Faktura nie dotyczy zamówienia Allegro!"; return; } var_dump($sale->order_source); return; /* getBlob() { $EcmInvoiceOut = new EcmInvoiceOut(); $file_location = $EcmInvoiceOut->get_PDF_file_path($_REQUEST['pdf_type']); $blob= file_get_contents($file_location); var_dump($pdfData); } */