<!-- body -->
<div class="container contents af241x" style="width:1260px;">
  <!-- header menu
  ================================================== -->
  <div class="bs-docs-section clearfix">
    <form id="headerTop" class="header form-horizontal  {$noeventClassHeader}">
      <div class="col wp-100" style="height:38px"></div> {*メニュー分あける*}
      <div class="col wp-100 header af241x1popup ">
        <div class="col wp-100 well header1">
          <div class="col wp-100 " >
            <div class="col wp-100 cucdGrp cuscdGrp">
              <div class="col wd-810">
                <label class="control-label wd-080 poplabel in-required" >得意先</label>
                <input name="cucd" type="text" class="form-control input-sm item wd-S cucd eventcucd popCucd required clear" maxlength="7" value="{$header.cucd}">
                <input name="cuscd" type="text" class="form-control input-sm item wd-S cuscd eventcuscd popCuscd required clear" maxlength="6" value="{$header.cuscd}">
                <input type="button" class="col popbtn cmdCucd" tabindex="-1" value="?"/>
                <input name="cunm" type="text" class="form-control input-sm item wd-L cunm clear" readonly value="{$header.cunm}"/>
                <input name="spnm" type="text" class="form-control input-sm item wd-L spnm clear" readonly value="{$header.spnm}"/>
              </div>
              <div class="col wd-270">
                <div class="col wp-100">
                  <label class="control-label wd-060" >伝票番号</label>
                  <input name="vseq" type="text" class="form-control input-sm item wd-M vseq clear popAf241x1" date-mode2="2" lpadlength="6" maxlength="15" value="{$header.vseq}"/>
                  <input name="viseq" type="hidden" class="viseq clear" value="{$header.viseq}">
                  <input type="hidden" class="vseq241 clear" value="">  {*同一伝票番号複数あった時用*}
                  <input type="button" class="col popbtn cmdAf241x1" tabindex="-1" value="?"/>
                  <input type="hidden" class="col popbtn cmdAf241x1_list" tabindex="-1" value="F10:伝票一覧"/>
                  <input type="hidden" class="col popbtn cmdAf241x1_w" tabindex="-1" value="伝票重複"/>
                  <input type="text" class="dummy h_dummy"/>
                </div>
              </div>
              <div class="col wd-140">
                <label class="control-label wd-050 cutaxLabel" style="display:none;">税込</label>
                <label class="control-label wd-050 cutaxLabel_none">&nbsp;</label>
                <label class="control-label wd-050 newLabel" style="display:none;">新規</label>
              </div>
            </div>
            {*ヘッダー情報*}
            <input name="cuiseq" type="hidden" class="cuiseq clear" value="{$header.cuiseq}">
            <input name="ktcls" type="hidden" class="ktcls clear" value="{$header.ktcls}">
            <input name="cuhcls" type="hidden" class="cuhcls clear" value="{$header.cuhcls}">
            <input name="sbat" type="hidden" class="sbat clear" value="{$header.sbat}">
            <input name="cdat" type="hidden" class="cdat clear" value="{$header.cdat}">
            <input name="sts" type="hidden" class="sts clear" value="{$header.sts}">
            <input name="kflg_kbn" type="hidden" class="kflg_kbn" value="{$header.kflg_kbn}">
            {*afm03情報*}
            <input name="cutax" type="hidden" class="cutax clear" value="{$header.cutax}">
            <input name="cutaxc" type="hidden" class="cutaxc clear" value="{$header.cutaxc}">
            <input name="cutaxdiv" type="hidden" class="cutaxdiv clear" value="{$header.cutaxdiv}">
            <input name="maxvlin" type="hidden" class="maxvlin clear" value="{$header.maxvlin}"> {*伝票行数得意先によって決まる*}
            <input name="newmode" type="hidden" class="newmode clear" value="{$header.newmode}"/> {*NEW or UPD*}
            {*引数や状態*}
            <input name="cutaxcls" type="hidden" class="cutaxcls" value="{$header.cutaxcls}"/> {*総額得意先の単価入力 axm994より*}
            <input name="r30" type="hidden" class="r30" value="{$header.r30}">
          </div>
        </div>

        <div class="col wp-100 header2">
          <div class="col wd-470">
            <div class="col wp-100 date">
              <label class="control-label wd-080 in-required" >返品日</label>
              <input name="dat2" type="text" class="form-control input-sm item wd-date dat2 datepicker clear required" maxlength="10" value="{$header.dat2}">
              <input name="old_dat2" type="hidden" class="old_dat2 clear" value="{$header.dat2}">
              <div class="col wd-kbn">&nbsp;</div>
              <label class="control-label wd-050 in-required" >計上日</label>
              <input name="adat" type="text" class="form-control input-sm item wd-date adat datepicker clear required" maxlength="10" value="{$header.adat}">
              <input name="old_adat" type="hidden" class="old_adat clear" value="{$header.adat}">
            </div>
            <div class="col wp-100 ktktcdGrp">
              <label class="control-label wd-080 poplabel">倉庫</label>
              <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd eventktktcd popKtktcd clear" data-stpflg="1" maxlength="2" value="{$header.spktcd}">
              <input type="button" class="col popbtn cmdKtktcd " tabindex="-1" value="?"/>
              <input name="spktnm" type="text" class="form-control input-sm item wd-MM spktnm ktktnm clear" readonly value="{$header.spktnm}"/>
              <input name="ktcls" type="hidden" class="ktcls " readonly value=""/>
            </div>
            <div class="col wp-100">
              <label class="control-label wd-080" >分類コード</label>
              <input name="dcubcd" type="text" class="form-control input-sm item wd-SS dcubcd clear" maxlength="4" value="{$header.dcubcd}">
              <input name="old_dcubcd" type="hidden" class="old_dcubcd clear" value="{$header.dcubcd}">
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-060" >伝票区分</label>
              <input name="cuslip" type="text" class="form-control input-sm item wd-kbn cuslip clear" maxlength="2" value="{$header.cuslip}">
              <input name="old_cuslip" type="hidden" class="old_cuslip clear" value="{$header.cuslip}">
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-020" >便</label>
              <input name="bbno" type="text" class="form-control input-sm item wd-040 bbno clear" maxlength="3" value="{$header.bbno}">
              <input name="old_bbno" type="hidden" class="old_bbno clear" value="{$header.bbno}">
            </div>
          </div>
          <div class="col wd-400">
            <div class="col wp-100">
              <label class="control-label wd-030" >L欄</label>
              <input name="ltxt1" type="text" class="form-control item input-sm wd-L ltxt1 clear " maxlength="25" value="{$header.ltxt1}" />
              <input name="old_ltxt1" type="hidden" class="old_ltxt1 clear" value="{$header.ltxt1}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-030" >&nbsp;</label>
              <input name="ltxt2" type="text" class="form-control item input-sm wd-L ltxt2 clear " maxlength="25" value="{$header.ltxt2}" />
              <input name="old_ltxt2" type="hidden" class="old_ltxt2 clear" value="{$header.ltxt2}">
            </div>
            <div class="col wp-100">
              <label class="control-label wd-030" >&nbsp;</label>
              <input name="ltxt3" type="text" class="form-control item input-sm wd-L ltxt3 clear " maxlength="25" value="{$header.ltxt3}" />
              <input name="old_ltxt3" type="hidden" class="old_ltxt3 clear" value="{$header.ltxt3}">
            </div>
          </div>
          <div class="col wd-350">
            <div class="col wp-100">
              <label class="control-label wp-100 onlineLabel newLabelColor" style="display:none;">&nbsp;</label>
            </div>
          </div>
        </div>

        <hr>
      </div>
    </form>
  </div>

  <!-- body
  ================================================== -->
  <div class="bs-docs-section">
    <form class="body" >
      <div id="detailTop" class="bs-component col wp-100 {$noeventClassBody}">
        <!-- *** header *** -->
        <div id="detailHeader" class="col wp-100 detailHeader">
          <div class="col wp-100" style="height:13px;">
            <label class="control-label wd-kbn">&nbsp;</label>
            <label class="control-label wd-jan {if $header.p_tcls eq "01"}in-required{/if}">JAN</label>
            <label class="control-label wd-popbtn">&nbsp;</label>
            <label class="control-label wd-020">&nbsp;</label>
            <label class="control-label wd-LL">品名</label>
            <label class="control-label wd-number text-right in-required">数量</label>
            <label class="control-label wd-number text-right">返品単価</label>
            <label class="control-label wd-number text-right">返品金額</label>
            <label class="control-label wd-L">&nbsp;</label>
            <label class="control-label wd-030">&nbsp;</label>
            <label class="control-label wd-040 center delttl1">削除</label>
          </div>
          <div class="col wp-100">
            <label class="control-label wd-kbn">&nbsp;</label>
            <label class="control-label wd-jan">&nbsp;</label>
            <label class="control-label wd-popbtn">&nbsp;</label>
            <label class="control-label wd-020">&nbsp;</label>
            <label class="control-label wd-LL">規格</label>
          </div>
        </div>

        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail">
            {*明細*}
          </div>
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div id="footer_content" class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col" style="width:669px;">
              <input id="lastDetail" type="text" class="hide" style="opacity:0;height:0px;"/>
              <label class="control-label wd-050" >&nbsp;</label>
              <label class="control-label wd-040" >備考</label>
              <input name="txt1" type="text" class="form-control item input-sm wd-L txt1 clear " maxlength="40" value="" />
              <input name="old_txt1" type="hidden" class="old_txt1 clear" value="{$header.txt1}">
              <input type="text" class="dummy f_dummy"/>
            </div>
            <label class="control-label wd-090" >返品金額合計</label>
            <input id="sum_s_cst" name="g_cst" type="text" class="form-control item input-sm wd-number number sum_s_cst  " readonly value="" />
          </div>
          <hr>
          <div class="col wp-100">
            <div class="col wd-480">&nbsp;</div>
            <label class="control-label wd-030" >登録</label>
            <input name="chgcdnm" type="text" class="form-control item input-sm wd-M chgcdnm longnm clear" readonly value="" />
            <input name="idat" type="text" class="form-control item input-sm wd-M idat  clear " readonly value="" />
            <div class="col wd-010">&nbsp;</div>
            <label class="control-label wd-030" >更新</label>
            <input name="upchgnm" type="text" class="form-control item input-sm wd-M upchgnm longnm clear" readonly value="" />
            <input name="udat" type="text" class="form-control item input-sm wd-M udat  clear" readonly value="" />
          </div>
        </div>
      </div>
    </form>
    <hr>
  </div>

  <!-- footer
  ================================================== -->

  {include file="./funcMenu.tpl"} <!-- Function Menu -->

</div>
