Changeset 23251


Ignore:
Timestamp:
2013/10/24 19:49:16 (7 years ago)
Author:
undertree
Message:

#2437 v2.13.0 受注情報変更画面に使途不明・値未設定項目(shipping_product_quantity)がある。->修正いたしました。

Location:
branches/version-2_13-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/order/edit.tpl

    r23238 r23251  
    492492                <h2>届け先商品情報&nbsp;<a class="btn-normal" href="javascript:;" name="add_product" onclick="eccube.openWindow('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$shipping_index}-->', 'search', '615', '500', {menubar:'no'}); return false;">商品の追加</a> 
    493493                </h2> 
    494                 <!--{assign var=product_quantity value="shipping_product_quantity"}--> 
    495                 <input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" /> 
    496494 
    497495                <!--{if count($arrShipping.shipment_product_class_id) > 0}--> 
     
    544542            <!--{else}--> 
    545543                <!-- 配送先が1つでも、shipment_itemを更新するために必要 --> 
    546                 <!--{assign var=product_quantity value="shipping_product_quantity"}--> 
    547                 <input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" /> 
     544 
    548545                <!--{section name=item loop=$arrShipping.shipment_product_class_id|@count}--> 
    549546                    <!--{assign var=item_index value="`$smarty.section.item.index`"}--> 
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23230 r23251  
    419419        $objFormParam->addParam('お届け日(日)', 'shipping_date_day', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    420420        $objFormParam->addParam('お届け日', 'shipping_date', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); 
    421         $objFormParam->addParam('配送商品数量', 'shipping_product_quantity', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    422421 
    423422        $objFormParam->addParam('商品規格ID', 'shipment_product_class_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
     
    497496         */ 
    498497        $arrShipmentForm = array(); 
    499         $arrProductQuantity = array(); 
    500498        $arrShippingIds = $objFormParam->getValue('shipping_id'); 
    501499        foreach ($arrShippingIds as $shipping_id) { 
     
    510508            } 
    511509            // お届け先ごとの配送商品数量を設定 
    512             $arrProductQuantity[$shipping_id] = count($arrShipmentItem[$shipping_id]); 
    513510        } 
    514511 
    515512        $objFormParam->setParam($arrShipmentForm); 
    516         $objFormParam->setValue('shipping_product_quantity', $arrProductQuantity); 
    517513 
    518514        // 受注商品の数量を変更 
     
    567563         * $arrProductQuantity[$shipping_id] = お届け先ごとの配送商品数量 
    568564         */ 
    569         $arrProductQuantity = array(); 
    570565        $arrShipmentItem = array(); 
    571566        foreach ($arrShippings as $shipping_id => $arrShipping) { 
    572             $arrProductQuantity[$shipping_id] = count($arrShipping['shipment_item']); 
    573567            foreach ($arrShipping['shipment_item'] as $item_index => $arrItem) { 
    574568                foreach ($arrItem as $item_key => $item_val) { 
     
    577571            } 
    578572        } 
    579         $objFormParam->setValue('shipping_product_quantity', $arrProductQuantity); 
    580573        $objFormParam->setParam($arrShipmentItem); 
    581574 
     
    10891082    { 
    10901083        $arrShipmentsItems = $objFormParam->getSwapArray(array('shipment_product_class_id','shipment_quantity')); 
    1091          
     1084 
    10921085        // 配送先が存在する時のみ、商品個数の再設定を行います 
    10931086        if(!SC_Utils_Ex::isBlank($arrShipmentsItems)) { 
Note: See TracChangeset for help on using the changeset viewer.