当前位置: 首页>>代码示例>>PHP>>正文


PHP orders::doCancelOrders方法代码示例

本文整理汇总了PHP中orders::doCancelOrders方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::doCancelOrders方法的具体用法?PHP orders::doCancelOrders怎么用?PHP orders::doCancelOrders使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在orders的用法示例。


在下文中一共展示了orders::doCancelOrders方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: elseif

             //set order as DSO and move items to Depot/Mixed
             $items_dso[] = $oiid;
             if ($order_type == 'SP') {
                 $class_jo->updateItemStatus($oiid, '8', 'auto-set');
             } elseif ($order_type == 'JG') {
                 $class_o->updateProductStatus($oiid, '8', 'auto-set');
             }
         }
     }
 } else {
     if ($class_pm->productIsKilled($oi['products_id'])) {
         //Auto Cancel Order for Killed Products<
         if ($order_type == 'SP') {
             $class_jo->doCancelOrders($oiid, $oi['status'], $session_userinfo['username']);
         } elseif ($order_type == 'JG') {
             $class_o->doCancelOrders($oiid, $oi['status'], $session_userinfo['username']);
         }
         $items_auto_canceled[] = $order_type . '-' . $oiid;
         //RELEASE ITEM FROM ORDER
         unset($items[$oiid]);
         $orders_total[$order_key]--;
     }
     if ($oi['order_item_total'] == 1 && !$order_must_wait_in_depot_tab) {
         //SET AS MTO IF SINGLE PRODUCT ORDER
         $items_mto[] = $oiid;
         if ($order_type == 'SP') {
             $class_jo->updateItemStatus($oiid, '1', 'auto-set');
         } elseif ($order_type == 'JG') {
             $class_o->updateProductStatus($oiid, '1', 'auto-set');
         }
     } else {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:process-open-orders.php

示例2: elseif

 $sop_mouse_over['edit_email_address'] = 'click here to change Customer ' . 'Email Adress only for this order';
 $sop_mouse_over['toggle_thumbnails'] = 'Show or hide product thumbnails ' . 'and other additional details';
 $sop_mouse_over['payone_link'] = 'Click here to open payone search page ' . 'directly. If payone requested login, please submit your login data, ' . 'close the popup and click this link again';
 $sop_mouse_over['status_history'] = 'Click here to view status change chronology.';
 $sop_mouse_over['invoice_download'] = 'Click here to download invoice as PDF.';
 $sop_mouse_over['pi_download'] = 'Click here to redownload Production ' . 'Instruction, please notice that print counter will be increased on ' . 'each download';
 $sop_mouse_over['shipping_cost'] = 'Free shipping for J&G orders from ' . '30,00 EUR / Customer of OTTO always pay shipping costs';
 $sop_mouse_over['voucher_cancel'] = 'This is the amount we have to ' . 'cancel from the discount because of returns. This works only if a ' . 'connection to minimum 1 voucher with percentage is found. Please ' . 'notice that this is just a simplified overview, for the real refund ' . 'process please check directly in payone system.';
 $text_encrypted = 'ENCRYPTED';
 if (isset($_POST['me_action'])) {
     if ($_POST['me_action'] == 'CANCELPRODUCT') {
         $cancel_source = tep_db_prepare_input($_POST['cancel_source']);
         $cancel_id = tep_db_prepare_input($_POST['cancel_id']);
         $cancel_old_status = tep_db_prepare_input($_POST['cancel_status']);
         if ($cancel_source == Order::ORDER_TYPE_JULIE_GRACE) {
             $new_status = $class_o->doCancelOrders($cancel_id, $cancel_old_status, $session_userinfo['username']);
         } elseif ($cancel_source == Order::ORDER_TYPE_SALES_PARTNER) {
             $new_status = $class_jo->doCancelOrders($cancel_id, $cancel_old_status, $session_userinfo['username']);
         }
         $result = isset($new_status) && statusIsCancelled($new_status) ? 'OK' : 'FAIL';
         $result .= '|' . $cancel_id;
         echo utf8_encode($result);
         exit;
     } elseif ($_POST['me_action'] == 'RESETLOGISTICPROCESS') {
         if ($source == Order::ORDER_TYPE_JULIE_GRACE) {
             $class_o->logisticProcessReset($order_id);
         } elseif ($source == Order::ORDER_TYPE_SALES_PARTNER) {
             $class_jo->logisticProcessReset($order_id);
         }
         echo utf8_encode('OK');
         exit;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:customer-care-order-detail.php

示例3: doCancelOrders

 function doCancelOrders($items_id, $old_status, $updater)
 {
     $item = $this->retrieveDetail($items_id);
     $new_status = '12';
     if (count($item) > 0 && $item['status'] == $old_status) {
         $this->updateStatus($items_id, $new_status, $updater);
         $this->updateStockStatus($items_id, '0');
         cancelOrderStockHandler('DP', $items_id, $item['stock_status'], $item['status'], $item['print_count'], $item['print_confirmed'], $item['products_id'], $item['articles_id'], $item['quantity']);
         //ALSO CANCEL SOURCE ORDER IF MMO (SP/JG)
         if ($item['trans_type'] == 'SP') {
             use_class('jng_sp_orders');
             $class_jo = new jng_sp_orders();
             $item_trans = $class_jo->retrieveItemDetail($item['trans_id']);
             //ALSO CANCEL REAL ORDERS IF status = "in HH" AND IT'S stock_status NOT USING DEPOT STOCK "D"
             if ($item_trans['status'] == '8' && $item_trans['stock_status'] != 'D') {
                 $class_jo->doCancelOrders($item['trans_id'], $item_trans['status'], $updater, 'J', false);
             }
         } elseif ($item['trans_type'] == 'JG') {
             use_class('orders');
             $class_o = new orders();
             $item_trans = $class_o->retrieveProductDetail($item['trans_id']);
             //ALSO CANCEL REAL ORDERS IF status = "in HH" AND IT'S stock_status NOT USING DEPOT STOCK "D"
             if ($item_trans['status'] == '8' && $item_trans['stock_status'] != 'D') {
                 $class_o->doCancelOrders($item['trans_id'], $item_trans['status'], $updater, 'J', false);
             }
         }
     } else {
         $new_status = $item['status'];
     }
     return $new_status;
 }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:depot_orders.php

示例4: statusNameShort

         if ($new_status == '10') {
             $class_jo->doCancelOrders($item_id, $old_status, $session_userinfo['username']);
         } else {
             $class_jo->updateItemStatus($item_id, $new_status, $session_userinfo['username']);
         }
         $success = '1';
         $status = statusNameShort($new_status, true);
     } else {
         $status = statusNameShort($item['status'], true);
     }
     break;
 case 'JG':
     $item = $class_o->retrieveProductDetail($item_id);
     if ($item['status'] == $old_status) {
         if ($new_status == '10') {
             $class_o->doCancelOrders($item_id, $old_status, $session_userinfo['username']);
         } else {
             $class_o->updateProductStatus($item_id, $new_status, $session_userinfo['username']);
         }
         $success = '1';
         $status = statusNameShort($new_status, true);
     } else {
         $status = statusNameShort($item['status'], true);
     }
     break;
 case 'DP':
     $item = $class_do->retrieveDetail($item_id);
     if ($item['status'] == $old_status) {
         if ($new_status == '10') {
             $class_do->doCancelOrders($item_id, $old_status, $session_userinfo['username']);
         } else {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:new-orders-process.php

示例5: elseif

                $action .= '<input type="hidden" id="opid-' . $row['orders_products_id'] . '" name="op_id" value="' . $row['orders_products_id'] . '" />';
                $action .= '<input type="hidden" id="stat-' . $row['orders_products_id'] . '" name="stat" value="' . $row['status'] . '" />';
                $t['t'] = $action;
                $table[] = $t;
            }
            $result = tep_draw_table('spo', $table);
        } else {
            $result .= '<h3 class="red">No orders/products found</h3>';
        }
        echo utf8_encode($result);
        exit;
    } elseif ($_POST['me_action'] == 'ADDTOLIST') {
        $opid = tep_db_prepare_input($_POST['op_id']);
        $old_status = tep_db_prepare_input($_POST['old_status']);
        $cancelby = tep_db_prepare_input($_POST['op_cancelby']);
        $class_o->doCancelOrders($opid, $old_status, $session_userinfo['username'], $cancelby);
        $result = array();
        $result['op_id'] = $opid;
        $result['new_status'] = '10';
        ajaxReturn($result);
        exit;
    }
}
//START TEMPLATE
$content .= '<div>';
$content .= 'Search field ';
$content .= '<select id="osearch_field" name="search_field">';
$content .= '<option value="name">Customer Name</option>';
$content .= '<option value="order">Order Number</option>';
$content .= '<option value="product">Product Code</option>';
$content .= '</select>';
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:orders-cancel.php


注:本文中的orders::doCancelOrders方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。