4 [% PROCESS 'i18n.inc' %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername | html %][% ELSE %]Orders with uncertain prices[% END %] › Acquisitions › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="acq_uncertainprice" class="acq">
12 [% WRAPPER 'header.inc' %]
13 [% INCLUDE 'acquisitions-search.inc' %]
16 [% WRAPPER 'sub-header.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
23 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
25 [% IF ( booksellername ) %]
27 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
30 <a href="#" aria-current="page">
31 Uncertain prices for vendor [% booksellername | html %]
36 <a href="#" aria-current="page">
45 <div class="main container-fluid">
47 <div class="col-sm-10 col-sm-push-2">
50 [% INCLUDE 'acquisitions-toolbar.inc' %]
52 [% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %]
53 <META HTTP-EQUIV=Refresh CONTENT="[% metacontent | html %]">
55 [% IF ( booksellername ) %]
56 <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
57 <h2>Contact information</h2>
58 <p><strong>Address: </strong>
59 [% booksellerpostal | html %]
60 [% bookselleraddress1 | html %]
61 [% bookselleraddress2 | html %]
62 [% bookselleraddress3 | html %]
63 [% bookselleraddress4 | html %]
65 <p><strong>Phone: </strong>
66 [% booksellerphone | html %] / Fax:
68 [% FOREACH contact IN contacts %]
69 <dt><strong>Contact: </strong></dt>
70 <dd>[% contact.name | html %]
71 [% contact.position | html %]
72 [% contact.phone | html %]
73 [% contact.altphone | html %]
74 [% contact.email | html %]
75 [% contact.notes | html %]
79 [% IF ( booksellernotes ) %]
80 <p><strong>Notes: </strong>
81 [% booksellernotes | html %]</p>
85 <h1>Orders with uncertain prices</h1>
86 <form action="[% scriptname | html %]" method="post">
87 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
88 <label for="owner">Orders from:</label>
89 <select id="owner" name="owner">
91 <option value="0">Everyone</option>
92 <option value="1" selected="selected">me</option>
94 <option value="0" selected="selected">Everyone</option>
95 <option value="1">me</option>
98 <input type="submit" value="Filter" />
100 <form action="[% scriptname | html %]" method="post" id="uncertainprices">
101 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
102 <input type="hidden" name="op" value="validate" />
103 <table id="uncertainpricet">
107 <th>[% tp('noun', 'Order') | html %]</th>
109 <th class="NoSort">Uncertain</th>
110 <th class="NoSort">Price</th>
111 <th class="NoSort">Quantity</th>
112 <th class="NoSort">Edit</th>
116 [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
119 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% uncertainpriceorder.basketno | uri %]">[% uncertainpriceorder.basketname | html %]</a>
122 [% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %]
123 [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %]
124 [% IF ( uncertainpriceorder.publishercode ) %]
125 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %]
126 [%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %]
127 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %]
130 [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %]
134 [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %]
137 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" />
140 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.listprice | html %]" />
143 [% IF basket.effective_create_items == 'ordering' %]
144 [% uncertainpriceorder.quantity | html %]
145 <input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
147 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
151 <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber | uri %]&booksellerid=[% booksellerid | uri %]&basketno=[% uncertainpriceorder.basketno | uri %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
157 <fieldset class="action"><input type="submit" value="Save" /></fieldset>
162 </div> <!-- /.col-sm-10.col-sm-push-2 -->
164 <div class="col-sm-2 col-sm-pull-10">
166 [% INCLUDE 'vendor-menu.inc' %]
168 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
169 </div> <!-- /.row -->
171 [% MACRO jsinclude BLOCK %]
172 [% Asset.js("js/acquisitions-menu.js") | $raw %]
173 [% Asset.js("js/acq.js") | $raw %]
174 [% INCLUDE 'datatables.inc' %]
176 $(document).ready(function() {
177 var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
179 { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
181 "sPaginationType": "full"
183 $(".check_uncertain").on("change",function(){
184 var form = document.getElementById("uncertainprices");
185 var ordernumber = $(this).data("ordernumber");
186 uncheckbox( form, ordernumber );
190 [% Asset.js("js/acq.js") | $raw %]
193 [% INCLUDE 'intranet-bottom.inc' %]