4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
6 [% Asset.css("css/datatables.css") %]
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_uncertainprice" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › [% IF ( booksellername ) %]<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> › Uncertain prices for vendor [% booksellername %][% ELSE %]Uncertain prices[% END %]</div>
16 <div id="doc3" class="yui-t2">
22 [% INCLUDE 'acquisitions-toolbar.inc' %]
24 [% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %]
25 <META HTTP-EQUIV=Refresh CONTENT="[% metacontent %]">
27 [% IF ( booksellername ) %]
28 <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
29 <h2>Contact information</h2>
30 <p><strong>Address: </strong>
31 [% booksellerpostal %]
32 [% bookselleraddress1 %]
33 [% bookselleraddress2 %]
34 [% bookselleraddress3 %]
35 [% bookselleraddress4 %]
36 <a href="[% booksellerurl %]">[% booksellerurl %]</a>
38 <p><strong>Phone: </strong>
39 [% booksellerphone %] / Fax:
40 [% booksellerfax %]</p>
42 [% FOREACH contact IN contacts %]
43 <dt><strong>Contact: </strong></dt>
44 <dd>[% contact.name %]
45 [% contact.position %]
47 [% contact.altphone %]
53 [% IF ( booksellernotes ) %]
54 <p><strong>Notes: </strong>
55 [% booksellernotes %]</p>
59 <h2>Orders with uncertain prices</h2>
60 <form action="[% scriptname %]" method="post">
61 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
62 <label for="owner">Orders from:</label>
63 <select id="owner" name="owner">
65 <option value="0">Everyone</option>
66 <option value="1" selected="selected">me</option>
68 <option value="0" selected="selected">Everyone</option>
69 <option value="1">me</option>
72 <input type="submit" value="Filter" />
74 <form action="[% scriptname %]" method="post" id="uncertainprices">
75 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
76 <input type="hidden" name="op" value="validate" />
77 <table id="uncertainpricet">
89 [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
92 [% uncertainpriceorder.basketname %]
95 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber %]">[% uncertainpriceorder.title |html %]</a>
96 [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author %][% END %]
97 [% IF ( uncertainpriceorder.publishercode ) %]
98 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode %]
99 [%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear %]
100 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate %]
103 [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn %][% END %]
105 <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% uncertainpriceorder.basketno %]">
110 [% uncertainpriceorder.firstname %] [% uncertainpriceorder.surname %]
113 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" />
116 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]" />
119 [% IF basket.effective_create_items == 'ordering' %]
120 [% uncertainpriceorder.quantity %]
121 <input type="hidden" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" />
123 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" />
130 <fieldset class="action"><input type="submit" value="Save" /></fieldset>
137 [% INCLUDE 'vendor-menu.inc' %]
141 [% MACRO jsinclude BLOCK %]
142 [% Asset.js("js/acquisitions-menu.js") %]
143 [% INCLUDE 'datatables.inc' %]
144 <script type="text/javascript">
145 $(document).ready(function() {
146 var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
148 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
150 "sPaginationType": "four_button"
152 $(".check_uncertain").on("change",function(){
153 var form = document.getElementById("uncertainprices");
154 var ordernumber = $(this).data("ordernumber");
155 uncheckbox( form, ordernumber );
158 var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
160 [% Asset.js("js/acq.js") %]
163 [% INCLUDE 'intranet-bottom.inc' %]