Changeset 23054


Ignore:
Timestamp:
2013/08/11 17:39:23 (10 years ago)
Author:
undertree
Message:

1配送時に、商品明細の数量を配送側にもコピーする

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/order/edit.tpl

    r23024 r23054  
    8888        } 
    8989    }); 
     90 
     91    function quantityCopyForSingleShipping(product_index){ 
     92        var product_index = parseInt(product_index); 
     93        var input_quantity = $('input[name^="quantity[' + product_index + ']"]').val(); 
     94        $('input[name^="shipment_quantity[0][' + product_index + ']"]').val(input_quantity); 
     95    } 
    9096 
    9197//--> 
     
    364370                    <!--{assign var=key value="quantity"}--> 
    365371                    <span class="attention"><!--{$arrErr[$key][$product_index]}--></span> 
    366                     <input type="text" name="<!--{$key}-->[<!--{$product_index}-->]" value="<!--{$arrForm[$key].value[$product_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key][$product_index]|sfGetErrorColor}-->" id="<!--{$key}-->_<!--{$product_index}-->" /> 
     372                    <input type="text" name="<!--{$key}-->[<!--{$product_index}-->]" value="<!--{$arrForm[$key].value[$product_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key][$product_index]|sfGetErrorColor}-->" id="<!--{$key}-->_<!--{$product_index}-->"  onChange="quantityCopyForSingleShipping('<!--{$product_index}-->')" /> 
    367373                </td> 
    368374                <!--{assign var=price value=`$arrForm.price.value[$product_index]`}--> 
Note: See TracChangeset for help on using the changeset viewer.