예제 #1
0
<?php
/*
# ----------------------------------------------------------------------
# ORDER - DETAILS: CONTROL
# ----------------------------------------------------------------------
*/

$_get    = new ORDER_GET();
$_update = new ORDER_UPDATE();


$order_number = filter_var($_REQUEST['oid'], FILTER_SANITIZE_STRING);


$detail                  = $_get->detail_order($order_number);
$detail_item             = $_get->detail_order_item($detail->order_id);
$courier_order           = $_get->orderdetail_get_courier();
$detail_refresh          = $_get->detail_order($order_number);
$pay_stat                = $_get->control_get_payment_status($detail->payment_status);
$ful_stat                = $_get->control_fulfillment_status($detail_refresh->fulfillment_status);

$flag_payment_status     = $_get->control_get_payment_status($detail->payment_status);
$flag_fulfillment_status = $_get->control_fulfillment_status($detail->fulfillment_status);
$detail_refresh          = $_get->detail_order($order_number);
$data_bank               = $_get->get_bank();
$pay_stat                = $_get->control_get_payment_status($detail->payment_status);
$ful_stat                = $_get->control_fulfillment_status($detail_refresh->fulfillment_status);
$data_account            = $_get->get_accounts();
$data_accounts           = $_get->get_accounts();

예제 #2
0
<?php

/*
# ----------------------------------------------------------------------
# ORDER: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new ORDER_GET();
$_update = new ORDER_UPDATE();
/*
# ----------------------------------------------------------------------
# SORTING
# ----------------------------------------------------------------------
*/
$equal_search = array('order_payment_method', 'payment_status', 'fulfillment_status', 'order_date');
$default_sort_by = "order_id DESC";
$pgdata = page_init($equal_search, $default_sort_by);
$page = $pgdata['page'];
$query_per_page = $pgdata['query_per_page'];
$sort_by = $pgdata['sort_by'];
$first_record = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value = $pgdata['search_value'];
$search_query = $pgdata['search_query'];
$search = $pgdata['search'];
if (isset($_REQUEST['src'])) {
    $_REQUEST['src'] = $_REQUEST['src'];
} else {
    $_REQUEST['src'] = '';
}
$full_order = $_get->fullOrderIndex($search_query, $sort_by, $first_record, $query_per_page, $_status);
예제 #3
0
<?php

/*
# ----------------------------------------------------------------------
# BACK ORDER - DETAILS: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new ORDER_GET();
$_update = new ORDER_UPDATE();
$order_number = filter_var($_REQUEST['oid'], FILTER_SANITIZE_NUMBER_INT);
$count_detail = $_get->count_backorder($order_number);
$detail = $_get->get_backorder($order_number);
$stock = $_get->count_stock($detail->type_id, $detail->stockname);
/* --- BUTTON HANDLER --- */
if (isset($_POST['btn-back-order']) && $_POST['btn-back-order'] == 'Sent Notification') {
    $back_id = $detail->back_id;
    $status = 0;
    $fulfillment_date = date('Y-m-d H:i:s');
    $_update->update($status, $fulfillment_date, $back_id);
    $page = 'back-order-notification/' . $order_number;
    safe_redirect($page);
}
예제 #4
0
<?php

/*
# ----------------------------------------------------------------------
# BACK ORDER: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new ORDER_GET();
$_update = new ORDER_UPDATE();
/*
# ----------------------------------------------------------------------
# SORTING
# ----------------------------------------------------------------------
*/
$equal_search = array('status');
$default_sort_by = "time DESC";
$pgdata = page_init($equal_search, $default_sort_by);
$page = $pgdata['page'];
$query_per_page = $pgdata['query_per_page'];
$sort_by = $pgdata['sort_by'];
$first_record = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value = $pgdata['search_value'];
$search_query = $pgdata['search_query'];
$search = $pgdata['search'];
if (isset($_REQUEST['src'])) {
    $_REQUEST['src'] = $_REQUEST['src'];
} else {
    $_REQUEST['src'] = '';
}
$full_order = $_get->count_backorder($search_query, $sort_by, $first_record, $query_per_page);