Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / uncertainprice.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8 //<![CDATA[
9  $(document).ready(function() {
10     var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
11         "aoColumnDefs": [
12             { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
13         ],
14         "sPaginationType": "four_button"
15     } ) );
16  });
17 var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
18  //]]>
19 </script>
20 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
21 <script type="text/javascript">
22 //<![CDATA[
23 function check(form) {
24     form.submit();
25 }
26 //]]>
27 </script>
28 </head>
29 <body id="acq_uncertainprice" class="acq">
30 [% INCLUDE 'header.inc' %]
31 [% INCLUDE 'acquisitions-search.inc' %]
32
33 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( booksellername ) %]<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor [% booksellername %][% ELSE %]Uncertain prices[% END %]</div>
34
35 <div id="doc3" class="yui-t2">
36
37     <div id="bd">
38     <div id="yui-main">
39     <div class="yui-b">
40
41 [% INCLUDE 'acquisitions-toolbar.inc' %]
42         [% IF ( validate ) %]
43             <META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
44         [% ELSE %]
45         [% IF ( booksellername ) %]
46             <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
47             <h2>Contact information</h2>
48             <p><strong>Address: </strong>
49                 [% booksellerpostal %]
50                 [% bookselleraddress1 %]
51                 [% bookselleraddress2 %]
52                 [% bookselleraddress3 %]
53                 [% bookselleraddress4 %]
54                 <a href="[% booksellerurl %]">[% booksellerurl %]</a>
55             </p>
56             <p><strong>Phone: </strong>
57                 [% booksellerphone %] / Fax:
58                 [% booksellerfax %]</p>
59             <dl>
60                 [% FOREACH contact IN contacts %]
61                     <dt><strong>Contact: </strong></dt>
62                     <dd>[% contact.name %]
63                         [% contact.position %]
64                         [% contact.phone %]
65                         [% contact.altphone %]
66                         [% contact.email %]
67                         [% contact.notes %]
68                     </dd>
69                 [% END %]
70             </dl>
71             [% IF ( booksellernotes ) %]
72             <p><strong>Notes: </strong>
73                 [% booksellernotes %]</p>
74             [% END %]
75         [% END %]
76
77         <h2>Orders with uncertain prices</h2>
78         <form action="[% scriptname %]" method="post" name="uncertainprices">
79         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
80         Orders from:
81         <select name="owner">
82             [% IF ( owner ) %]
83             <option value="0">Everyone</option>
84             <option value="1" selected="selected">me</option>
85             [% ELSE %]
86             <option value="0" selected="selected">Everyone</option>
87             <option value="1">me</option>
88             [% END %]
89         </select>
90         <input type="submit" value="Filter" />
91         </form>
92         <form action="[% scriptname %]" method="post" name="uncertainprices">
93         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
94         <input type="hidden" name="op" value="validate" />
95         <table id="uncertainpricet">
96         <thead>
97             <tr>
98             <th>Basket</th>
99            <th>Order</th>
100             <th>By</th>
101             <th>Uncertain</th>
102             <th>Price</th>
103             <th>Quantity</th>
104             </tr>
105         </thead>
106         <tbody>
107             [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
108             <tr>
109         <td>
110             [% uncertainpriceorder.basketname %]
111         </td>
112             <td>
113                 [% uncertainpriceorder.bibtitle %] / [% uncertainpriceorder.bibauthor %] <br /> [% uncertainpriceorder.bibpublishercode %], [% uncertainpriceorder.bibpublicationyear %]<br />[% uncertainpriceorder.bibisbn %]<br />
114                 <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% uncertainpriceorder.basketno %]">
115                     edit
116                 </a>
117             </td>
118         <td>
119             [% uncertainpriceorder.firstname %] [% uncertainpriceorder.surname %]
120         </td>
121             <td>
122                 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" />
123             </td>
124             <td>
125                 <input type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]"
126                                                 onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
127             </td>
128             <td>
129                 
130         [% IF Koha.Preference('AcqCreateItem') == 'ordering' %]
131             [% uncertainpriceorder.quantity %]
132             <input type="hidden" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" />
133         [% ELSE %]
134             <input type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]"
135                     onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
136         [% END %]
137             </td>
138             </tr>
139             [% END %]
140     </tbody>
141         </table>
142         <fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset>
143         </form>
144         [% END %]
145
146 </div>
147 </div>
148 <div class="yui-b">
149 [% INCLUDE 'vendor-menu.inc' %]
150 </div>
151 </div>
152 [% INCLUDE 'intranet-bottom.inc' %]