5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername | html %][% ELSE %]Orders with uncertain prices[% END %]</title>
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 | html %]">[% booksellername | html %]</a> › Uncertain prices for vendor [% booksellername | html %][% ELSE %]Uncertain prices[% END %]</div>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
21 [% INCLUDE 'acquisitions-toolbar.inc' %]
23 [% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %]
24 <META HTTP-EQUIV=Refresh CONTENT="[% metacontent | html %]">
26 [% IF ( booksellername ) %]
27 <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
28 <h2>Contact information</h2>
29 <p><strong>Address: </strong>
30 [% booksellerpostal | html %]
31 [% bookselleraddress1 | html %]
32 [% bookselleraddress2 | html %]
33 [% bookselleraddress3 | html %]
34 [% bookselleraddress4 | html %]
35 <a href="[% booksellerurl | url %]">[% booksellerurl | html %]</a>
37 <p><strong>Phone: </strong>
38 [% booksellerphone | html %] / Fax:
39 [% booksellerfax | html %]</p>
41 [% FOREACH contact IN contacts %]
42 <dt><strong>Contact: </strong></dt>
43 <dd>[% contact.name | html %]
44 [% contact.position | html %]
45 [% contact.phone | html %]
46 [% contact.altphone | html %]
47 [% contact.email | html %]
48 [% contact.notes | html %]
52 [% IF ( booksellernotes ) %]
53 <p><strong>Notes: </strong>
54 [% booksellernotes | html %]</p>
58 <h2>Orders with uncertain prices</h2>
59 <form action="[% scriptname | html %]" method="post">
60 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
61 <label for="owner">Orders from:</label>
62 <select id="owner" name="owner">
64 <option value="0">Everyone</option>
65 <option value="1" selected="selected">me</option>
67 <option value="0" selected="selected">Everyone</option>
68 <option value="1">me</option>
71 <input type="submit" value="Filter" />
73 <form action="[% scriptname | html %]" method="post" id="uncertainprices">
74 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
75 <input type="hidden" name="op" value="validate" />
76 <table id="uncertainpricet">
88 [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
91 [% uncertainpriceorder.basketname | html %]
94 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber | uri %]">[% uncertainpriceorder.title | html %]</a>
95 [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %]
96 [% IF ( uncertainpriceorder.publishercode ) %]
97 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %]
98 [%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %]
99 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %]
102 [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %]
104 <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% uncertainpriceorder.basketno | uri %]">
109 [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %]
112 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" />
115 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.listprice | html %]" />
118 [% IF basket.effective_create_items == 'ordering' %]
119 [% uncertainpriceorder.quantity | html %]
120 <input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
122 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
129 <fieldset class="action"><input type="submit" value="Save" /></fieldset>
134 </div> <!-- /.col-sm-10.col-sm-push-2 -->
136 <div class="col-sm-2 col-sm-pull-10">
138 [% INCLUDE 'vendor-menu.inc' %]
140 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
141 </div> <!-- /.row -->
143 [% MACRO jsinclude BLOCK %]
144 [% Asset.js("js/acquisitions-menu.js") | $raw %]
145 [% INCLUDE 'datatables.inc' %]
147 $(document).ready(function() {
148 var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
150 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
152 "sPaginationType": "full"
154 $(".check_uncertain").on("change",function(){
155 var form = document.getElementById("uncertainprices");
156 var ordernumber = $(this).data("ordernumber");
157 uncheckbox( form, ordernumber );
160 var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
162 [% Asset.js("js/acq.js") | $raw %]
165 [% INCLUDE 'intranet-bottom.inc' %]