Changeset 23251
- Timestamp:
- 2013/10/24 19:49:16 (10 years ago)
- 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 492 492 <h2>届け先商品情報 <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> 493 493 </h2> 494 <!--{assign var=product_quantity value="shipping_product_quantity"}-->495 <input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" />496 494 497 495 <!--{if count($arrShipping.shipment_product_class_id) > 0}--> … … 544 542 <!--{else}--> 545 543 <!-- 配送先が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 548 545 <!--{section name=item loop=$arrShipping.shipment_product_class_id|@count}--> 549 546 <!--{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 419 419 $objFormParam->addParam('お届け日(日)', 'shipping_date_day', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 420 420 $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'));422 421 423 422 $objFormParam->addParam('商品規格ID', 'shipment_product_class_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); … … 497 496 */ 498 497 $arrShipmentForm = array(); 499 $arrProductQuantity = array();500 498 $arrShippingIds = $objFormParam->getValue('shipping_id'); 501 499 foreach ($arrShippingIds as $shipping_id) { … … 510 508 } 511 509 // お届け先ごとの配送商品数量を設定 512 $arrProductQuantity[$shipping_id] = count($arrShipmentItem[$shipping_id]);513 510 } 514 511 515 512 $objFormParam->setParam($arrShipmentForm); 516 $objFormParam->setValue('shipping_product_quantity', $arrProductQuantity);517 513 518 514 // 受注商品の数量を変更 … … 567 563 * $arrProductQuantity[$shipping_id] = お届け先ごとの配送商品数量 568 564 */ 569 $arrProductQuantity = array();570 565 $arrShipmentItem = array(); 571 566 foreach ($arrShippings as $shipping_id => $arrShipping) { 572 $arrProductQuantity[$shipping_id] = count($arrShipping['shipment_item']);573 567 foreach ($arrShipping['shipment_item'] as $item_index => $arrItem) { 574 568 foreach ($arrItem as $item_key => $item_val) { … … 577 571 } 578 572 } 579 $objFormParam->setValue('shipping_product_quantity', $arrProductQuantity);580 573 $objFormParam->setParam($arrShipmentItem); 581 574 … … 1089 1082 { 1090 1083 $arrShipmentsItems = $objFormParam->getSwapArray(array('shipment_product_class_id','shipment_quantity')); 1091 1084 1092 1085 // 配送先が存在する時のみ、商品個数の再設定を行います 1093 1086 if(!SC_Utils_Ex::isBlank($arrShipmentsItems)) {
Note: See TracChangeset
for help on using the changeset viewer.