{action->getSupplierName assign=supplier}
{action->getSelectedList assign=deliverylist}

{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_item.html"}

<!-- ↓段組み　メイン側 -->
<div id="main">

<h3>商品納品 確認</h3>

<form>
  <input type="hidden" name="{token->getName}" value="{token->getValue}">
  <input type="hidden" name="suppliercode"     value="{$action.suppliercode}">
  <input type="hidden" name="suppliermode"     value="{$action.suppliermode}">
  <input type="hidden" name="deliverydatefrom" value="{$action.deliverydatefrom}">
  <input type="hidden" name="deliverydateto"   value="{$action.deliverydateto}">
  <input type="hidden" name="ordernumber"      value="{$action.ordernumber}">
  <input type="hidden" name="jancode"          value="{$action.jancode}">
  <input type="hidden" name="sortmode"         value="{$action.sortmode}">
  <input type="hidden" name="pageID"           value="{$action.pageID}">

  {if $action.overOrderFlag == false}
    <div class="checkmessage">納品済みにしてもよろしいですか？</div>
  {else}
    <div class="error">
      発注数以上に納品しようとしている商品があります<br />
      納品済みにしてもよろしいですか？
    </div>
  {/if}

<!-- ↓検索結果 -->
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th class="order_number2">注文番号</th>

    <th class="product_number">品番</th>
    <th class="title">タイトル</th>

    <th class="sell_date">発売日</th>
    <th class="list_price">定価</th>
    <th class="unit_price">仕入単価</th>
    <th class="order_number">発注数</th>
    <th class="deliver_number">納品数</th>
    <th class="order_price">発注金額</th>
  </tr>

  {foreach name=deliveryforeach from=$deliverylist item=one key=key}
  <input type="hidden" name="ischecked[{$key}]"      value="1">
  <input type="hidden" name="itemcd[{$key}]"         value="{$one.itemcd}">
  <input type="hidden" name="structcd[{$key}]"       value="{$one.structcd}">
  <input type="hidden" name="stocktitlecd[{$key}]"   value="{$one.stocktitlecd}">
  <input type="hidden" name="orderunitprice[{$key}]" value="{$one.orderunitprice}">
  <input type="hidden" name="ordernum[{$key}]"       value="{$one.ordernum}">
  <tr>
    {if $one.isinorder == FALSE}
      {assign var="class" value="name_alert"}
    {else}
      {assign var="class" value="name"}
    {/if}

    <td class="order_number2">{$one.orderno|escape}</td>

    <td class="product_number">{$one.makeritemcd}</td>
    <td class="title">{$one.itemnm|escape}&nbsp;{$one.variationnm}</td>

    <td class="sell_date">{$one.salestartdate|date_format:"%Y/%m/%d"}</td>
    <td class="list_price">{$one.makerprice|number_format}円</td>
    <td class="unit_price">{$one.orderunitprice|number_format}円</td>
    <td class="order_number">{$one.deliverynum|number_format}本</td>
    <td class="deliver_number">{$one.ordernum|number_format}本</td>
    <td class="order_price">{$one.sumprice|number_format}円</td>
  </tr>
  {foreachelse}
  <tr>
    <td class="name" colspan="12" align="center">該当するデータは現在登録されておりません。</td>
  </tr>
  {/foreach}
</table>
<!-- ↑検索結果 -->

  <input type="submit" name="dispatch_admin_itemmanage_delivery_complete" value="納品済みにする">
  <input type="submit" name="dispatch_admin_itemmanage_delivery_list" value="一覧に戻る">
</form>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

</div>
<!--End of main-->

<div class="cr"></div>
</div>
<!--End of container-->

{include file="admin/footer.html"}
