Changeset 23477 for branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
- Timestamp:
- 2014/05/30 18:14:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r23394 r23477 977 977 * 978 978 * @param SC_FormParam $objFormParam SC_FormParam インスタンス 979 * @return アンカーキーの文字列979 * @return string アンカーキーの文字列 980 980 */ 981 981 public function getAnchorKey(&$objFormParam) … … 1034 1034 * 1035 1035 * @param SC_FormParam $objFormParam SC_FormParam インスタンス 1036 * @param integer $ add_product_class_id 変更商品規格ID1036 * @param integer $edit_product_class_id 変更商品規格ID 1037 1037 * @param integer $change_no 変更対象 1038 1038 * @return void … … 1115 1115 * 変更対象のデータを上書きする 1116 1116 * 1117 * @param array $arrShipmentProducts 変更対象配列1118 * @param array $arrProductInfo 上書きデータ1119 * @param int eger$shipping_id 配送先ID1120 * @param array$no 変更対象1117 * @param array $arrShipmentProducts 変更対象配列 1118 * @param array $arrProductInfo 上書きデータ 1119 * @param int $shipping_id 配送先ID 1120 * @param int $no 変更対象 1121 1121 * @return void 1122 1122 */ … … 1144 1144 // 配送先が存在する時のみ、商品個数の再設定を行います 1145 1145 if(!SC_Utils_Ex::isBlank($arrShipmentsItems)) { 1146 $arrUpdateQuantity = array(); 1146 1147 foreach ($arrShipmentsItems as $arritems) { 1147 1148 foreach ($arritems['shipment_product_class_id'] as $relation_index => $shipment_product_class_id) { … … 1151 1152 1152 1153 $arrProductsClass = $objFormParam->getValue('product_class_id'); 1153 $arr ProductsQuantity = $objFormParam->getValue('quantity');1154 $arrQuantity = array(); 1154 1155 foreach ($arrProductsClass as $relation_key => $product_class_id) { 1155 $arrQuantity[ 'quantity'][$relation_key] = $arrUpdateQuantity[$product_class_id];1156 } 1157 $objFormParam->setParam( $arrQuantity);1156 $arrQuantity[$relation_key] = isset($arrUpdateQuantity[$product_class_id]) ? $arrUpdateQuantity[$product_class_id] : 0; 1157 } 1158 $objFormParam->setParam(array('quantity' => $arrQuantity)); 1158 1159 } 1159 1160 } … … 1175 1176 foreach ($arrDeleteKeys as $delete_key) { 1176 1177 $arrProducts = $objFormParam->getValue($delete_key); 1178 $arrUpdateParams = array(); 1177 1179 foreach ($arrProducts as $index => $product_info) { 1178 1180 if ($index != $relation_index) { … … 1192 1194 * @param SC_FormParam $objFormParam SC_FormParam インスタンス 1193 1195 * @param array $arrShipmentDeleteKeys 削除項目 1194 * @param int eger $delete_shipping_id削除配送ID1195 * @param array$delete_no 削除対象1196 * @return void1197 */ 1198 public function deleteShipment(&$objFormParam, $arrShipmentDelet Keys, $delete_shipping_id, $delete_no)1199 { 1200 foreach ($arrShipmentDeletKeys as $delete_key) {1201 $arrShipments = $objFormParam->getValue($delete_key);1202 foreach ($arrShipments as $shipp_id => $arrKeyData) {1203 if (empty($arrKeyData)) continue;1204 foreach ($arrKeyData as $relation_index => $shipment_info) {1205 if ($relation_index != $delete_no || $shipp_id != $delete_shipping_id) {1206 $arrUpdateParams[$delete_key][$shipp_id][] = $shipment_info;1207 }1196 * @param int $delete_shipping_id 削除配送ID 1197 * @param int $delete_no 削除対象 1198 * @return array 1199 */ 1200 public function deleteShipment(&$objFormParam, $arrShipmentDeleteKeys, $delete_shipping_id, $delete_no) 1201 { 1202 $arrUpdateParams = array(); 1203 foreach ($arrShipmentDeleteKeys as $delete_key) { 1204 $arrShipments = $objFormParam->getValue($delete_key); 1205 foreach ($arrShipments as $shipp_id => $arrKeyData) { 1206 if (empty($arrKeyData)) continue; 1207 foreach ($arrKeyData as $relation_index => $shipment_info) { 1208 if ($relation_index != $delete_no || $shipp_id != $delete_shipping_id) { 1209 $arrUpdateParams[$delete_key][$shipp_id][] = $shipment_info; 1208 1210 } 1209 1211 } 1210 1212 } 1211 //$objFormParam->setParam($arrUpdateParams); 1212 return $arrUpdateParams; 1213 } 1213 } 1214 //$objFormParam->setParam($arrUpdateParams); 1215 return $arrUpdateParams; 1216 } 1214 1217 1215 1218 /** 1216 1219 * 受注商品一覧側に商品を追加 1217 1220 * 1218 * @param SC_FormParam $objFormParamSC_FormParam インスタンス1219 * @param array $arrProductClassIds対象配列の商品規格ID1220 * @param integer $indert_product_class_id 追??商品規格ID1221 * @param array $arrAddProductInfo追加データ1222 * @return array $arrAddProducts更新データ1221 * @param SC_FormParam $objFormParam SC_FormParam インスタンス 1222 * @param array $arrProductClassIds 対象配列の商品規格ID 1223 * @param int $insert_product_class_id 追加商品規格ID 1224 * @param array $arrAddProductInfo 追加データ 1225 * @return array|null $arrAddProducts 更新データ 1223 1226 */ 1224 1227 public function checkInsertOrderProducts(&$objFormParam, $arrProductClassIds, $insert_product_class_id, $arrAddProductInfo)
Note: See TracChangeset
for help on using the changeset viewer.