コード例 #1
0
     } else {
         $content .= '<h3 style="font-weight:normal;">&raquo; This order is not yet processed in HH Logistic</h3>';
     }
 } else {
     $reset_link = '<span id="clear-logistic_process" class="blue pointer">Click here to clear this flag</span>';
     $content .= '<h3 class="green" style="font-weight:normal;">&raquo; This order has been processed in HH Logistic on: <strong>' . date('d.m.Y H:i:s', strtotime($order['logistic_process'])) . '</strong>, ' . $reset_link . '</h3>';
 }
 $header = 'Prevent Double Sendings';
 $paragraphs = array();
 $paragraphs[] = 'To prevent double sendings, each order can only be processed in HH Logistic once. After the order is flagged, Manobo Client (MC) will refuse to process the order for the second time.';
 $paragraphs[] = 'In special cases that we really have to process it again, please use above <em>clear flag link</em>. After clearing the flag, MC will be able to process the order again.';
 $content .= drawSOPinfo($header, $paragraphs, 'width:650px;');
 //SEPARATOR
 $content .= '<div style="clear:both;">&nbsp;</div>';
 if ($source == 'SP' && $order['jng_sp_id'] == '6') {
     $content .= $class_jo->downloadRetailInvoiceForm();
 } else {
     //PAYMENT DETAILS
     $shipping_cost = displayCurrency($order_currency, $order['shipping_costs']);
     $discount = '(' . displayCurrency($order_currency, $order['amount_discount']) . ')';
     //var to save discount amount to be canceled because of returns
     $discount_cancelation = 0;
     if ($all_products_canceled) {
         if ($order['shipping_costs'] > 0) {
             $shipping_cost = '<span class="notice deleted" title="All Products are canceled">' . $shipping_cost . '</span>';
         }
         if ($order['amount_discount'] > 0) {
             $discount = '<span class="notice deleted" title="All Products are canceled">' . $discount . '</span>';
         }
         $total_price_final = 0;
     } else {