バージョン選択

フォーラム

メニュー

オンライン状況

58 人のユーザが現在オンラインです。 (45 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 58
もっと...

サイト内検索

バグ報告 > 管理機能 > 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
sumida
投稿日時: 2014/6/21 21:59
対応状況: −−−
仙人
登録日: 2013/2/10
居住地: 広島県呉市ときどき瀬戸内海
投稿: 641
管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。
管理画面:受注情報編集において、「変更」ボタンをクリックし、商品を選択する。
(1)変更前と同じ商品を選ぶ
  現状:数量が+1される。
     本来は、数量が変化してはいけないと思う。
     これについては、既にチケット#2486に登録されています。
修正案
data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

        //既にあるデータは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) {
/* deleted
            $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$change_no] ++;
deleted */
        } elseif (in_array($edit_product_class_id, $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id])) {



(2)既にある商品と同じ商品を選ぶ
  現状:数量が+1される。
     本来は、「変更前の商品の数量+既にある商品の数量」になるのではないかと思う。

この(2)についてのスレッドです。
修正案
data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

        } elseif (in_array($edit_product_class_id, $arrShipmentProducts['shipment_product_class_id'][$select_shipping_id])) {
// added
            $pre_shipment_quantity = $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$change_no];
// added
            //配送先データ削除
            $arrShipmentProducts = $this->deleteShipment($objFormParam, $this->arrShipmentItemKeys , $select_shipping_id, $change_no);
            foreach ($arrShipmentProducts['shipment_product_class_id'][$select_shipping_id] as $relation_index => $shipment_product_class_id) {
                if ($shipment_product_class_id == $edit_product_class_id) {
/* changed
                    $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$relation_index] ++;
changed */
                    $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$relation_index]
                              = $arrShipmentProducts['shipment_quantity'][$select_shipping_id][$relation_index] + $pre_shipment_quantity;

// changed
                    break;
                }
            }
 


追記:6/24
(3)新しい商品を選ぶ
  現状:数量が1にされる。
     本来は、「変更前の商品の数量」になるのではないかと思う。

修正案
data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    public function changeShipmentProducts(&$arrShipmentProducts, $arrProductInfo, $shipping_id, $no)
    {
        $arrShipmentProducts['shipment_product_class_id'][$shipping_id][$no]    = $arrProductInfo['product_class_id'];
        $arrShipmentProducts['shipment_product_code'][$shipping_id][$no]        = $arrProductInfo['product_code'];
        $arrShipmentProducts['shipment_product_name'][$shipping_id][$no]        = $arrProductInfo['name'];
        $arrShipmentProducts['shipment_classcategory_name1'][$shipping_id][$no] = $arrProductInfo['classcategory_name1'];
        $arrShipmentProducts['shipment_classcategory_name2'][$shipping_id][$no] = $arrProductInfo['classcategory_name2'];
        $arrShipmentProducts['shipment_price'][$shipping_id][$no]               = $arrProductInfo['price02'];
/* deleted
        $arrShipmentProducts['shipment_quantity'][$shipping_id][$no]            = 1;
deleted */
    }
 
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 sumida 2014/6/21 21:59
     Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 bbkids 2014/6/23 2:32
       Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 sumida 2014/6/24 21:42
         Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 bbkids 2014/6/25 8:58
           Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 sumida 2014/6/25 11:36
           Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 red 2014/7/2 21:49
             Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 bbkids 2014/7/3 13:20
     Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 snitta 2014/7/2 23:47
       Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 sumida 2014/7/3 8:59
         Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 snitta 2014/7/3 10:50
           Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 bbkids 2014/7/3 13:43
             Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 nanasess 2014/7/3 15:06
               Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 snitta 2014/7/3 17:35
                 Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 nanasess 2014/7/3 18:10
                   Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 snitta 2014/7/3 19:45
                     Re: 管理画面:受注情報編集において、既存の商品に変更した場合、数量が+1される。 bbkids 2014/7/4 8:45

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,722名です
総投稿数は109,953件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1638
8
red
1570
9
mcontact
1286
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.