<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- <!-- TMPL_UNLESS name="basketno" -->新 <!-- /TMPL_UNLESS -->購物籃 (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE name="masthead.inc" -->
<!-- TMPL_INCLUDE name="intranet-nav.inc" -->

<div id="main">
	<h1><!-- TMPL_UNLESS name="basketno" -->新 <!-- /TMPL_UNLESS -->購物籃 <b><!-- TMPL_VAR NAME="basketno" --> </b>for <a href="supplier.pl?id=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1><br />
	<!-- TMPL_UNLESS name="closedate" -->
		<div class="data">
			<table>
			<caption>購物籃詳細資料</caption>
			<tr><th>購物籃號碼:</th><td><!-- TMPL_VAR NAME="basketno" --></td></tr>
			<tr><th>管理者:</th><td><!-- TMPL_VAR NAME="authorisedbyname" --></td></tr>
			<tr><th>開始:</th><td><!-- TMPL_VAR NAME="creationdate" --></td></tr>
			<tr><th>給:</th><td>供應商帳號<!-- TMPL_VAR NAME="booksellerid" --></td></tr>
			<tr><th>發票號碼:</th><td><!-- TMPL_VAR NAME="booksellerinvoicenumber" --></td></tr>
			<!-- TMPL_IF name="closedate" --><tr><th>結束:</th><td> <!-- TMPL_VAR name="closedate" --></td></tr><!-- /TMPL_IF -->
			</table><!-- TMPL_UNLESS name="closedate" --><form action="/cgi-bin/koha/acqui/order.pl" method="get"><input type="hidden" name="op" value="close" /><input type="hidden" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" /><input type="hidden" name="supplier" value="<!-- TMPL_VAR name="booksellerid" -->" /><input type="submit" class="submit" value="關閉此購物籃" /></form><!-- /TMPL_UNLESS -->
		</div>
	<!-- /TMPL_UNLESS -->
	
	<div class="data">
	<!-- TMPL_IF name="books_loop" -->
		<table>
			<caption>訂單詳細資料</caption>
			<tr>
				<th scope="col">訂單</th>
				<th scope="col"><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->&amp;order=biblioitems.publishercode">Publisher</a></th>
				<th scope="col">題名</th>
				<th scope="col">RRP</th>
				<th scope="col">估價</th>
				<th scope="col">數量</th>
				<th scope="col">總計</th>
				<th scope="col"><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->&amp;order=aqorderbreakdown.bookfundid,biblioitems.publishercode">經費</a></th>
<!-- TMPL_IF name="active" -->
<!-- TMPL_UNLESS name="closedate" -->
					<th scope="col">移除</th>
				<!-- /TMPL_UNLESS -->
					<!-- /TMPL_IF -->
			</tr>
			<!-- TMPL_LOOP NAME="books_loop" -->
				<!-- TMPL_IF NAME="highlight" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
							<td><!-- TMPL_VAR NAME="ordernumber" --></td>
					<td><!-- TMPL_VAR NAME="publishercode" --></td>
<!-- TMPL_IF name="closedate" -->
						<td><p>
							<b><!-- TMPL_VAR NAME="title" --></b><br/>
								<!-- TMPL_VAR NAME="author" -->
								<!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
								<!-- TMPL_IF name="notes" --></p><p><i><!--TMPL_VAR name="notes" --></i><!-- /TMPL_IF -->
							</p>
						</td>
					<!-- TMPL_ELSE -->
						<td>
							<p>
							<a href="newbiblio.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->"><!-- TMPL_VAR NAME="title" --></a><br/>
								<!-- TMPL_VAR NAME="author" -->
								<!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
								<!-- TMPL_IF name="notes" --></p><p><i><!--TMPL_VAR name="notes" --></i><!-- /TMPL_IF -->
							</p>
						</td>
					<!-- /TMPL_IF -->
					<td><!-- TMPL_VAR NAME="rrp" --></td>
					<td><!-- TMPL_VAR NAME="ecost" --></td>
					<td><!-- TMPL_VAR NAME="quantity" --></td>
					<td><!-- TMPL_VAR NAME="line_total" --></td>
					<td><!-- TMPL_VAR NAME="bookfundid" --></td>
					<!-- TMPL_IF name="active" -->
					<!-- TMPL_UNLESS name="closedate" -->
					<td>
							<form action="addorder.pl" method="get"><input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordernumber" -->" /><input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" /><input type="hidden" name="quantity" value="0" /><input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><input type="submit" class="delete" value="刪除" /></form>
						</td>
					<!-- /TMPL_UNLESS -->
						<!-- /TMPL_IF -->
				</tr>
			<!-- /TMPL_LOOP -->
			
			<tr>
				<td colspan="2" rowspan="3">
<input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" /><input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />	</td>
				<th>訂購總計</th>
				<th><!-- TMPL_VAR NAME="sub_total_est" --></th>
				<th><!-- TMPL_VAR NAME="sub_total" --></td>
				<th><!-- TMPL_VAR name="qty_total" --></th>
				<td colspan="2" rowspan="3">&nbsp;</td>
				
			</tr>
			<tr>
				<th>GST</th>
				<th><!-- TMPL_VAR NAME="gist_est" --></th>
				<th><!-- TMPL_VAR NAME="gist" --></th>
				<th>&nbsp;</th>
			</tr>
			<tr>
				<th>總計  (<!-- TMPL_VAR NAME="currency" -->)</th>
				<th><!-- TMPL_VAR NAME="grand_total_est" --></th>
				<th><!-- TMPL_VAR NAME="grand_total" --></th>
				<th>&nbsp;</th>
			</tr>
		</table>
	<!-- TMPL_ELSE -->
		<table>
			<caption>訂單詳細資料</caption>
			<tr><td>購物書空的</td></tr>
		</table>
	<!-- /TMPL_IF -->
	</div>
	<!-- TMPL_UNLESS name="closedate" -->
	<div class="details">
		<h2>新增訂單</h2>
		<form action="/cgi-bin/koha/acqui/newbasket2.pl" method="post">
			<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
			<input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
			<ul><li>從已經存在的記錄: <input type="text"  size="25"   name="search"><input type="submit" value="查詢" class="submit"></li>
			<li><a href="/cgi-bin/koha/acqui/suggestion-select.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">從薦購單</a></li>
			<li><a href="/cgi-bin/koha/acqui/newbiblio.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">新記錄</a></li>
			</ul>
		</form>
	</div>
	<!-- /TMPL_UNLESS -->
</div>

<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
