Ticket #2486 (closed バグ指摘: 修正済)
v2.13 管理画面 受注情報編集画面の商品の変更ボタンで商品追加になる
| Reported by: | kimoto | Owned by: | snitta |
|---|---|---|---|
| Priority: | 中 | Milestone: | EC-CUBE2.13.3 |
| Component: | 管理画面 | Version: | 2.13.0 |
| Keywords: | Cc: | ||
| 修正済み: | yes |
Description (last modified by snitta) (diff)
受注情報に表示される商品の変更ボタンをクリックすると、商品選択ポップアップ画面を表示する。ここで商品を決定する。サブミットを行うproduct_select.tplのjava script:func_submitにおいて
var opner_product_id = 'add_product_id';
var opner_product_class_id = 'add_product_class_id';
.
.
fm1.getElementById(opner_product_id).value = product_id;
fm1.getElementById(opner_product_class_id).value = product_class_id;
fm.mode.value = 'select_product_detail';
fm.anchor_key.value = 'order_products';
fm.submit();
とあり、「商品の追加」「変更」に関わらず、必ず商品追加として処理される。
その後、調べてみました。
変更の場合、LC_Page_Admin_Order_Edit.phpに変更として渡っているようです。
(最初の投稿内容は、誤りです。)
となると、
関数 shipmentEditProduct
//既にあるデータは1つだけ数量を1増やす
$pre_shipment_product_class_id = $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id][$change_no];
if ($pre_shipment_product_class_id == $edit_product_class_id) {
$arrShipmentProducts['shipment_quantity'][$select_shipping_id][$change_no] ++;
} elseif (in_array($edit_product_class_id, $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id])) {
ここに記述されている「既にあるデータは1つだけ数量を1増やす」の仕様がどうなのだろうか?
つまり、「変更」ボタンをクリックし、商品選択ポップアップ画面で元の商品と同じ商品を選択した場合、
・「数量を1増やす」
・「元のまま変化なし」
のいずれを仕様とするかということになる。
Change History
comment:3 Changed 12 years ago by snitta
- Owner changed from somebody to snitta
- Status changed from new to assigned
Note: See
TracTickets for help on using
tickets.
