예제 #1
0
파일: poaction.php 프로젝트: ftecpos/ia2
$po_action = optional_param('po_action', 'view');
$po_no = optional_param('pono', 0);
if (!check_shop_data()) {
    print_error('[!][er001] No shop data, please go sr page');
}
if (!require_login()) {
    print_error('[!][er002]Please login');
}
if (!is_number($po_no)) {
    print_error('[x][po001]Invalid PO number');
    exit;
}
switch ($po_action) {
    case 'deletepo':
        //check user permission, and this function is for office
        if (!require_office()) {
            print_error('[x][er003]Permission Deny for Retail Shop');
        }
        //get po detail
        if (!$po_no) {
            print_error('[x][po002]No PO number');
            exit;
        }
        $po = new po($po_no);
        if ($po->get_errmsg()) {
            print_error($po->get_errmsg());
            exit;
        }
        $po_data = $po->get_po();
        //print_object(unserialize($po_data_sered));
        switch ($po_data->postate_no) {
예제 #2
0
파일: invTrans.php 프로젝트: ftecpos/ia2
 //edit 2012-12-12
 if ($phone_qty != 0) {
     $detail_of_tr_inTable .= '<p>電話總數:' . $phone_qty . '</p>';
 }
 $button_inTable = '';
 $delete_tr_but = '';
 if ($transState_no == 1) {
     if ($_SESSION['retail_no'] == getShopno($fromshop)) {
         $button_inTable = '';
     } else {
         if ($_SESSION['retail_no'] == getShopno($toshop)) {
             $button_inTable = '<input type="button" value="收貨" onclick="recTransfer(' . $o_trNo . ')"/>';
         }
     }
     //有直接連PO的TR唔handle住, with_po = 0 等如無直接連
     if (require_office() && check_office_staff($_SESSION['staff_no']) && $row1['with_po'] == 0) {
         $delete_tr_but = '<input type="button" value="刪除轉貨單" class="finIncel"  onclick="deleteTrans(' . $o_trNo . ', this);" />';
     }
 }
 //echo $_SESSION['retail_no'];
 $numOfRow = 1;
 $printbut = '<input type="button" value="重印轉貨單" class="finIncel"  onclick="printTrans(' . $o_trNo . ');" />';
 $msgarray = array();
 $msgarray["trNo"] = $trNo;
 $msgarray["createDate"] = $createDate;
 $msgarray["createBy"] = $createBy;
 $msgarray["stateName"] = $stateName;
 $msgarray["fromshop"] = $fromshop;
 $msgarray["toshop"] = $toshop;
 $msgarray["detail_of_tr_inTable"] = $detail_of_tr_inTable;
 $msgarray["button_inTable"] = $button_inTable;