Beispiel #1
0
     $content .= '<tr>';
     $content .= '<td class="text notice" title="' . $tip . '">Original Price:</td>';
     $content .= '<td class="price notice" title="' . $tip . '">' . displayCurrency($order_currency, $order['order_price_vk']) . '</td>';
     $content .= '</tr>';
 }
 $content .= '</table>';
 $content .= '</div>';
 $content .= '</div>';
 $content .= '</div>';
 //TAB CONTENT OD CLOSE
 $content .= '<div id="od-oi">';
 //TAB CONTENT OD-OI OPEN
 $oi_content = '<h3>No Invoice for SP ' . $sp_detail['name'] . '</h3>';
 if ($order['jng_sp_id'] == '1') {
     $oi_content = '<h2>PCL Invoice by ' . $sp_detail['name'] . '</h2>';
     if ($class_jo->nmdeOrderUsePCL($order_id)) {
         //                $shcmd = 'ls '.SP_NECKERMANN_INVOICE_PATH.'|grep '.$order['shipment_id'];
         //                $output = shell_exec($shcmd);
         //                if(strlen($output)>0) {
         //                    $file_invoice = null;
         //                    $files_sorted = array();
         //                    $files = explode("\n", $output);
         //                    foreach($files as $f) {
         //                        $fs = explode('-backup-', str_replace('afp.pcl', '', $f));
         //                        if(count($fs)==1) {
         //                            if($fs[0]!='') $file_invoice = $f;
         //                        } else {
         //                            $files_sorted[$fs[1]] = $f;
         //                        }
         //                    }
         //                    ksort($files_sorted);
 $shipping_name = $order['customer_shipping_firstname'] . ' ' . $order['customer_shipping_lastname'];
 if ($order['customer_shipping_title'] != '') {
     $shipping_name = $order['customer_shipping_title'] . ' ' . $shipping_name;
 }
 $shipping_address = $order['customer_shipping_address'];
 $shipping_company = $order['customer_shipping_address2'];
 $cod_value = 0;
 if ($use_amvd_logistic) {
     $shipping_company = $sp_detail['package_prefix'];
     $shipping_name = $order['customer_billing_lastname'];
     $shipping_address = $order['customer_shipping_id'];
 } else {
     switch ($order['jng_sp_id']) {
         case '1':
             //NM.DE
             if ($class_jo->nmdeOrderUsePCL($order['jng_sp_orders_id'])) {
                 $nmde_usepcl = '1';
                 $pcl_filename = $class_jo->nmdePCLfilename($order['shipment_id']);
                 if (file_exists(SP_NECKERMANN_INVOICE_PATH . $pcl_filename)) {
                     $pcl_file = $pcl_filename;
                 } else {
                     if (file_exists(SP_NECKERMANN_INVOICE_PATH . $pcl_filename . $class_jo->nmdeOrdersPCLignoreSuffix)) {
                         $pcl_file = 'ignore';
                     }
                 }
             }
             break;
         case '2':
             //OT.DE
             $items = $class_jo->retrieveItems($order_id);
             foreach ($items as $key => $item) {