id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
2520	Re: v2.13.1 管理画面＞受注管理にて受注数量の変更ができない	kimoto	kimoto	"・お届け先は１口
・お届け先は、注文者自身ではなく、追加登録した住所
の場合、発生します。

http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=14396&forum=9&post_id=64667#forumpost64667

{{{
不具合ですね。edit.tpl（v2.13.1の修正を加えていないソースコードです。）
    function quantityCopyForSingleShipping(product_index){
        var product_index = parseInt(product_index);
        var input_quantity = $('input[name^=""quantity[' + product_index + ']""]').val();
        $('input[name^=""shipment_quantity[0][' + product_index + ']""]').val(input_quantity);
    }
この部分の「shipment_quantity[0]」が「0」の決め打ちになっているのが原因ですね。追記：以外と修正は単純なようです。「0」-->「<!--{$top_shipping_id}-->」にすれば良いようです。つまり、edit.tplの修正案を以下のようにします。
    function quantityCopyForSingleShipping(product_index, shipment_product_index){
        var product_index = parseInt(product_index);
        var input_quantity = $('input[name^=""quantity[' + product_index + ']""]').val();
        $('input[name^=""shipment_quantity[<!--{$top_shipping_id}-->][' + shipment_product_index + ']""]').val(input_quantity);
    }
きれいではないですが、取り合えず。quantityCopyForSingleShippingを呼ぶ側で、<!--{$top_shipping_id}-->を引数に追加し、quantityCopyForSingleShippingは、その引数を使用する方がきれいではありますが。
}}}"	バグ指摘	closed	中	EC-CUBE2.13.2	管理画面	2.13.1	修正済			1
