5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9 [% IF ( booksellername ) %]
10 [% tx("Orders with uncertain prices for vendor {vendor}", { vendor = booksellername }) | html %]
12 [% t("Orders with uncertain prices") | html %]
14 [% t("Acquisitions") | html %] ›
15 [% t("Koha") | html %]
17 [% INCLUDE 'doc-head-close.inc' %]
20 <body id="acq_uncertainprice" class="acq">
21 [% WRAPPER 'header.inc' %]
22 [% INCLUDE 'acquisitions-search.inc' %]
25 [% WRAPPER 'sub-header.inc' %]
26 [% WRAPPER breadcrumbs %]
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
30 [% IF ( booksellername ) %]
31 [% WRAPPER breadcrumb_item %]
32 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
34 [% WRAPPER breadcrumb_item bc_active= 1 %]
35 <span>Uncertain prices for vendor [% booksellername | html %]</span>
38 [% WRAPPER breadcrumb_item bc_active= 1 %]
39 <span>Uncertain prices</span>
42 [% END #/ WRAPPER breadcrumbs %]
43 [% END #/ WRAPPER sub-header.inc %]
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>
58 <div class="page-section">
59 <h2>Contact information</h2>
60 <p><strong>Address: </strong>
61 [% booksellerpostal | html %]
62 [% bookselleraddress1 | html %]
63 [% bookselleraddress2 | html %]
64 [% bookselleraddress3 | html %]
65 [% bookselleraddress4 | html %]
67 <p><strong>Phone: </strong>
68 [% booksellerphone | html %]
70 [% FOREACH contact IN contacts %]
71 <dt><strong>Contact: </strong></dt>
72 <dd>[% contact.name | html %]
73 [% contact.position | html %]
74 [% contact.phone | html %]
75 [% contact.altphone | html %]
76 [% contact.email | html %]
77 [% contact.notes | html %]
81 [% IF ( booksellernotes ) %]
82 <p><strong>Notes: </strong>
83 [% booksellernotes | html %]</p>
85 </div> <!-- /.page-section -->
88 <div class="page-section">
89 <h2>Order lines with uncertain prices</h2>
90 <form action="[% scriptname | html %]" method="post">
91 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
92 <label for="owner">Orders from:</label>
93 <select id="owner" name="owner">
95 <option value="0">Everyone</option>
96 <option value="1" selected="selected">me</option>
98 <option value="0" selected="selected">Everyone</option>
99 <option value="1">me</option>
102 <input type="submit" class="btn btn-primary" value="Filter" />
104 </div> <!-- /.page-section -->
105 <form action="[% scriptname | html %]" method="post" id="uncertainprices">
106 <fieldset class="rows">
107 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
108 <input type="hidden" name="op" value="validate" />
109 <table id="uncertainpricet">
113 <th>[% tp('noun', 'Order') | html %]</th>
115 <th class="NoSort">Uncertain</th>
116 <th class="NoSort">Price</th>
117 <th class="NoSort">Quantity</th>
118 <th class="NoSort">Edit</th>
122 [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
125 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% uncertainpriceorder.basketno | uri %]">[% uncertainpriceorder.basketname | html %]</a>
128 [% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %]
129 [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %]
130 [% IF ( uncertainpriceorder.publishercode ) %]
131 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %]
132 [%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %]
133 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %]
136 [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %]
140 [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %]
143 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" />
146 <input class="check_uncertain decimal" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.listprice | $Price on_editing => 1 %]" />
149 [% IF basket.effective_create_items == 'ordering' %]
150 [% uncertainpriceorder.quantity | html %]
151 <input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
153 <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
157 <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-solid fa-pencil" aria-hidden="true"></i> Edit</a>
164 <fieldset class="action"><input type="submit" class="btn btn-primary" value="Save" /></fieldset>
169 </div> <!-- /.col-sm-10.col-sm-push-2 -->
171 <div class="col-sm-2 col-sm-pull-10">
173 [% INCLUDE 'vendor-menu.inc' %]
175 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
176 </div> <!-- /.row -->
178 [% MACRO jsinclude BLOCK %]
179 [% Asset.js("js/acquisitions-menu.js") | $raw %]
180 [% Asset.js("js/acq.js") | $raw %]
181 [% INCLUDE 'datatables.inc' %]
183 $(document).ready(function() {
184 var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
186 { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
188 "sPaginationType": "full"
190 $(".check_uncertain").on("change",function(){
191 var form = document.getElementById("uncertainprices");
192 var ordernumber = $(this).data("ordernumber");
193 uncheckbox( form, ordernumber );
197 [% Asset.js("js/acq.js") | $raw %]
200 [% INCLUDE 'intranet-bottom.inc' %]