Changeset 22283


Ignore:
Timestamp:
2013/01/19 10:31:04 (8 years ago)
Author:
undertree
Message:

IssueID #1770 複数配送の受注情報編集時に、商品単価を変更してもお届け先情報の単価に反映されない

File:
1 edited

Legend:

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

    r22218 r22283  
    741741                                              $arrShipping['shipping_date_day']); 
    742742 
     743            //商品単価、数量を複数配送にも反映する 
     744            foreach ($arrDetail as $product_detail) { 
     745                foreach ($arrAllShipmentItem[$shipping_index]['shipment_product_class_id'] as $relation_index => $shipment_product_class_id) { 
     746                    if($product_detail['product_class_id'] == $shipment_product_class_id){ 
     747                        $arrAllShipmentItem[$shipping_index]['shipment_price'][$relation_index] = $product_detail['price']; 
     748                        foreach ($arrStockData as $arrStock) { 
     749                            //数量は先頭の届け先のみ増加 
     750                            if($arrStock['product_class_id'] == $shipment_product_class_id && $arrIsNotQuantityUp[$shipment_product_class_id] != true){ 
     751                                $arrIsNotQuantityUp[$shipment_product_class_id] = true; 
     752                                $arrAllShipmentItem[$shipping_index]['shipment_quantity'][$relation_index] -= $arrStock['quantity']; 
     753                                break; 
     754                            } 
     755                        } 
     756                    } 
     757                } 
     758            } 
     759 
    743760            // 配送業者IDを取得 
    744761            $arrShippingValues[$shipping_index]['deliv_id'] = $objFormParam->getValue('deliv_id'); 
Note: See TracChangeset for help on using the changeset viewer.