Ignore:
Timestamp:
2013/09/12 17:27:01 (11 years ago)
Author:
m_uehara
Message:

#2388 配送先が存在する時のみ個数再設定処理を行うように修正

File:
1 edited

Legend:

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

    r23207 r23220  
    10891089    { 
    10901090        $arrShipmentsItems = $objFormParam->getSwapArray(array('shipment_product_class_id','shipment_quantity')); 
    1091         foreach ($arrShipmentsItems as $arritems) { 
    1092             foreach ($arritems['shipment_product_class_id'] as $relation_index => $shipment_product_class_id) { 
    1093                 $arrUpdateQuantity[$shipment_product_class_id] += $arritems['shipment_quantity'][$relation_index]; 
    1094             } 
    1095         } 
    1096  
    1097         $arrProductsClass = $objFormParam->getValue('product_class_id'); 
    1098         $arrProductsQuantity = $objFormParam->getValue('quantity'); 
    1099         foreach ($arrProductsClass as $relation_key => $product_class_id) { 
    1100             $arrQuantity['quantity'][$relation_key] = $arrUpdateQuantity[$product_class_id]; 
    1101         } 
    1102         $objFormParam->setParam($arrQuantity); 
     1091         
     1092        // 配送先が存在する時のみ、商品個数の再設定を行います 
     1093        if(!SC_Utils_Ex::isBlank($arrShipmentsItems)) { 
     1094            foreach ($arrShipmentsItems as $arritems) { 
     1095                foreach ($arritems['shipment_product_class_id'] as $relation_index => $shipment_product_class_id) { 
     1096                    $arrUpdateQuantity[$shipment_product_class_id] += $arritems['shipment_quantity'][$relation_index]; 
     1097                } 
     1098            } 
     1099 
     1100            $arrProductsClass = $objFormParam->getValue('product_class_id'); 
     1101            $arrProductsQuantity = $objFormParam->getValue('quantity'); 
     1102            foreach ($arrProductsClass as $relation_key => $product_class_id) { 
     1103                $arrQuantity['quantity'][$relation_key] = $arrUpdateQuantity[$product_class_id]; 
     1104            } 
     1105            $objFormParam->setParam($arrQuantity); 
     1106        } 
    11031107    } 
    11041108 
Note: See TracChangeset for help on using the changeset viewer.