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 [% WRAPPER breadcrumbs %]
18 [% WRAPPER breadcrumb_item %]
19 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
21 [% IF ( booksellername ) %]
22 [% WRAPPER breadcrumb_item %]
23 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
25 [% WRAPPER breadcrumb_item bc_active= 1 %]
26 <span>Uncertain prices for vendor [% booksellername | html %]</span>
29 [% WRAPPER breadcrumb_item bc_active= 1 %]
30 <span>Uncertain prices</span>
33 [% END #/ WRAPPER breadcrumbs %]
34 [% END #/ WRAPPER sub-header.inc %]
36 <div class="main container-fluid">
38 <div class="col-sm-10 col-sm-push-2">
41 [% INCLUDE 'acquisitions-toolbar.inc' %]
43 [% SET metacontent = '0; url=' _ scriptname _ '?booksellerid=' _ booksellerid %]
44 <META HTTP-EQUIV=Refresh CONTENT="[% metacontent | html %]">
46 [% IF ( booksellername ) %]
47 <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
49 <div class="page-section">
50 <h2>Contact information</h2>
51 <p><strong>Address: </strong>
52 [% booksellerpostal | html %]
53 [% bookselleraddress1 | html %]
54 [% bookselleraddress2 | html %]
55 [% bookselleraddress3 | html %]
56 [% bookselleraddress4 | html %]
58 <p><strong>Phone: </strong>
59 [% booksellerphone | html %]
61 [% FOREACH contact IN contacts %]
62 <dt><strong>Contact: </strong></dt>
63 <dd>[% contact.name | html %]
64 [% contact.position | html %]
65 [% contact.phone | html %]
66 [% contact.altphone | html %]
67 [% contact.email | html %]
68 [% contact.notes | html %]
72 [% IF ( booksellernotes ) %]
73 <p><strong>Notes: </strong>
74 [% booksellernotes | html %]</p>
76 </div> <!-- /.page-section -->
79 <div class="page-section">
80 <h2>Order lines with uncertain prices</h2>
81 <form action="[% scriptname | html %]" method="post">
82 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
83 <label for="owner">Orders from:</label>
84 <select id="owner" name="owner">
86 <option value="0">Everyone</option>
87 <option value="1" selected="selected">me</option>
89 <option value="0" selected="selected">Everyone</option>
90 <option value="1">me</option>
93 <input type="submit" class="btn btn-primary" value="Filter" />
95 </div> <!-- /.page-section -->
96 <form action="[% scriptname | html %]" method="post" id="uncertainprices">
97 <fieldset class="rows">
98 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
99 <input type="hidden" name="op" value="validate" />
100 <table id="uncertainpricet">
104 <th>[% tp('noun', 'Order') | html %]</th>
106 <th class="NoSort">Uncertain</th>
107 <th class="NoSort">Price</th>
108 <th class="NoSort">Quantity</th>
109 <th class="NoSort">Edit</th>
113 [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
116 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% uncertainpriceorder.basketno | uri %]">[% uncertainpriceorder.basketname | html %]</a>
119 [% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %]
120 [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %]
121 [% IF ( uncertainpriceorder.publishercode ) %]
122 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %]
123 [%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %]
124 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %]
127 [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %]
131 [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %]
134 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" />
137 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.listprice | html %]" />
140 [% IF basket.effective_create_items == 'ordering' %]
141 [% uncertainpriceorder.quantity | html %]
142 <input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
144 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
148 <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>
155 <fieldset class="action"><input type="submit" class="btn btn-primary" value="Save" /></fieldset>
160 </div> <!-- /.col-sm-10.col-sm-push-2 -->
162 <div class="col-sm-2 col-sm-pull-10">
164 [% INCLUDE 'vendor-menu.inc' %]
166 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
167 </div> <!-- /.row -->
169 [% MACRO jsinclude BLOCK %]
170 [% Asset.js("js/acquisitions-menu.js") | $raw %]
171 [% Asset.js("js/acq.js") | $raw %]
172 [% INCLUDE 'datatables.inc' %]
174 $(document).ready(function() {
175 var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
177 { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
179 "sPaginationType": "full"
181 $(".check_uncertain").on("change",function(){
182 var form = document.getElementById("uncertainprices");
183 var ordernumber = $(this).data("ordernumber");
184 uncheckbox( form, ordernumber );
188 [% Asset.js("js/acq.js") | $raw %]
191 [% INCLUDE 'intranet-bottom.inc' %]