Ignore:
Timestamp:
2009/07/08 16:39:57 (15 years ago)
Author:
kajiwara
Message:

2.4.1 正式版をコミット。コミット内容詳細はこちら(http://svn.ec-cube.net/open_trac/query?status=closed&milestone=EC-CUBE2.4.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r18176 r18177  
    8888        /* ペイジェント決済モジュール連携用 */ 
    8989        if(function_exists("sfPaygentOrderPage")) { 
    90             $this->arrFormKind = sfPaygentOrderPage(); 
     90            $this->arrDispKind = sfPaygentOrderPage(); 
    9191        } 
    9292 
     
    372372        // 受注商品情報 
    373373        $this->objFormParam->addParam("値引き", "discount", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0'); 
    374         $this->objFormParam->addParam("送料", "deliv_fee", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
     374        $this->objFormParam->addParam("送料", "deliv_fee", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0'); 
    375375        $this->objFormParam->addParam("手数料", "charge", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    376376 
     
    409409        $this->objFormParam->addParam("顧客ID", "customer_id"); 
    410410        $this->objFormParam->addParam("現在のポイント", "point"); 
    411         $this->objFormParam->addParam("受注番号", "order_id"); 
     411        $this->objFormParam->addParam("注文番号", "order_id"); 
    412412        $this->objFormParam->addParam("受注日", "create_date"); 
    413413        $this->objFormParam->addParam("発送日", "commit_date"); 
     
    441441                $this->arrForm["payment_type"] = "お支払い"; 
    442442            } 
     443            //受注データを表示用配列に代入(各EC-CUBEバージョンと決済モジュールとのデータ連携保全のため) 
     444            $this->arrDisp = $this->arrForm; 
    443445        } 
    444446    } 
     
    566568        if ($sqlval['status'] == ODERSTATUS_COMMIT) { 
    567569            // 受注テーブルの発送済み日を更新する 
    568             $sql .= "     ,commit_date = 'NOW()'"; 
     570            $sql .= "     ,commit_date = NOW()"; 
    569571        } 
    570572        $sql .= " WHERE order_id = ?"; 
     
    697699        $arrProduct = $this->lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2); 
    698700        $this->arrForm = $this->objFormParam->getFormParamList(); 
    699         $this->lfSetProductData($arrProduct); 
     701        $existes = false; 
     702        $existes_key = NULL; 
     703        // 既に同じ商品がないか、確認する 
     704        if (!empty($this->arrForm['product_id']['value'])) { 
     705            foreach ($this->arrForm['product_id']['value'] AS $key=>$val) { 
     706                if ($val == $product_id && $this->arrForm['product_id']['classcategory_id1'][$key] == $classcategory_id1 && $this->arrForm['product_id']['classcategory_id2'][$key] == $classcategory_id2) { 
     707                    // 既に同じ商品がある 
     708                    $existes = true; 
     709                    $existes_key = $key; 
     710                } 
     711            } 
     712        } 
     713 
     714        if ($existes) { 
     715            // 既に同じ商品がある場合 
     716            ++$this->arrForm['quantity']['value'][$existes_key]; 
     717        } else { 
     718            // 既に同じ商品がない場合 
     719            $this->lfSetProductData($arrProduct); 
     720        } 
    700721    } 
    701722 
Note: See TracChangeset for help on using the changeset viewer.