Lines 54-161
Link Here
|
54 |
[% ELSE %] |
54 |
[% ELSE %] |
55 |
[% IF ( booksellername ) %] |
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> |
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> |
57 |
|
58 |
<p><strong>Address: </strong> |
58 |
<div class="page-section"> |
59 |
[% booksellerpostal | html %] |
59 |
<h2>Contact information</h2> |
60 |
[% bookselleraddress1 | html %] |
60 |
<p><strong>Address: </strong> |
61 |
[% bookselleraddress2 | html %] |
61 |
[% booksellerpostal | html %] |
62 |
[% bookselleraddress3 | html %] |
62 |
[% bookselleraddress1 | html %] |
63 |
[% bookselleraddress4 | html %] |
63 |
[% bookselleraddress2 | html %] |
64 |
</p> |
64 |
[% bookselleraddress3 | html %] |
65 |
<p><strong>Phone: </strong> |
65 |
[% bookselleraddress4 | html %] |
66 |
[% booksellerphone | html %] / Fax: |
66 |
</p> |
67 |
<dl> |
67 |
<p><strong>Phone: </strong> |
68 |
[% FOREACH contact IN contacts %] |
68 |
[% booksellerphone | html %] / Fax: |
69 |
<dt><strong>Contact: </strong></dt> |
69 |
<dl> |
70 |
<dd>[% contact.name | html %] |
70 |
[% FOREACH contact IN contacts %] |
71 |
[% contact.position | html %] |
71 |
<dt><strong>Contact: </strong></dt> |
72 |
[% contact.phone | html %] |
72 |
<dd>[% contact.name | html %] |
73 |
[% contact.altphone | html %] |
73 |
[% contact.position | html %] |
74 |
[% contact.email | html %] |
74 |
[% contact.phone | html %] |
75 |
[% contact.notes | html %] |
75 |
[% contact.altphone | html %] |
76 |
</dd> |
76 |
[% contact.email | html %] |
|
|
77 |
[% contact.notes | html %] |
78 |
</dd> |
79 |
[% END %] |
80 |
</dl> |
81 |
[% IF ( booksellernotes ) %] |
82 |
<p><strong>Notes: </strong> |
83 |
[% booksellernotes | html %]</p> |
77 |
[% END %] |
84 |
[% END %] |
78 |
</dl> |
85 |
</div> <!-- /.page-section --> |
79 |
[% IF ( booksellernotes ) %] |
|
|
80 |
<p><strong>Notes: </strong> |
81 |
[% booksellernotes | html %]</p> |
82 |
[% END %] |
83 |
[% END %] |
86 |
[% END %] |
84 |
|
87 |
|
85 |
<h1>Orders with uncertain prices</h1> |
88 |
<h1>Orders with uncertain prices</h1> |
86 |
<form action="[% scriptname | html %]" method="post"> |
89 |
|
87 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
90 |
<div class="page-section"> |
88 |
<label for="owner">Orders from:</label> |
91 |
<form action="[% scriptname | html %]" method="post"> |
89 |
<select id="owner" name="owner"> |
92 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
90 |
[% IF ( owner ) %] |
93 |
<label for="owner">Orders from:</label> |
91 |
<option value="0">Everyone</option> |
94 |
<select id="owner" name="owner"> |
92 |
<option value="1" selected="selected">me</option> |
95 |
[% IF ( owner ) %] |
93 |
[% ELSE %] |
96 |
<option value="0">Everyone</option> |
94 |
<option value="0" selected="selected">Everyone</option> |
97 |
<option value="1" selected="selected">me</option> |
95 |
<option value="1">me</option> |
98 |
[% ELSE %] |
96 |
[% END %] |
99 |
<option value="0" selected="selected">Everyone</option> |
97 |
</select> |
100 |
<option value="1">me</option> |
98 |
<input type="submit" class="btn btn-primary" value="Filter" /> |
101 |
[% END %] |
99 |
</form> |
102 |
</select> |
100 |
<form action="[% scriptname | html %]" method="post" id="uncertainprices"> |
103 |
<input type="submit" class="btn btn-primary" value="Filter" /> |
101 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
104 |
</form> |
102 |
<input type="hidden" name="op" value="validate" /> |
105 |
<form action="[% scriptname | html %]" method="post" id="uncertainprices"> |
103 |
<table id="uncertainpricet"> |
106 |
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> |
104 |
<thead> |
107 |
<input type="hidden" name="op" value="validate" /> |
105 |
<tr> |
108 |
<table id="uncertainpricet"> |
106 |
<th>Basket</th> |
109 |
<thead> |
107 |
<th>[% tp('noun', 'Order') | html %]</th> |
110 |
<tr> |
108 |
<th>By</th> |
111 |
<th>Basket</th> |
109 |
<th class="NoSort">Uncertain</th> |
112 |
<th>[% tp('noun', 'Order') | html %]</th> |
110 |
<th class="NoSort">Price</th> |
113 |
<th>By</th> |
111 |
<th class="NoSort">Quantity</th> |
114 |
<th class="NoSort">Uncertain</th> |
112 |
<th class="NoSort">Edit</th> |
115 |
<th class="NoSort">Price</th> |
113 |
</tr> |
116 |
<th class="NoSort">Quantity</th> |
114 |
</thead> |
117 |
<th class="NoSort">Edit</th> |
115 |
<tbody> |
118 |
</tr> |
116 |
[% FOREACH uncertainpriceorder IN uncertainpriceorders %] |
119 |
</thead> |
117 |
<tr> |
120 |
<tbody> |
118 |
<td> |
121 |
[% FOREACH uncertainpriceorder IN uncertainpriceorders %] |
119 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% uncertainpriceorder.basketno | uri %]">[% uncertainpriceorder.basketname | html %]</a> |
122 |
<tr> |
120 |
</td> |
123 |
<td> |
121 |
<td> |
124 |
<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 %] |
125 |
</td> |
123 |
[% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %] |
126 |
<td> |
124 |
[% IF ( uncertainpriceorder.publishercode ) %] |
127 |
[% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %] |
125 |
<br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %] |
128 |
[% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %] |
126 |
[%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %] |
129 |
[% IF ( uncertainpriceorder.publishercode ) %] |
127 |
[%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %] |
130 |
<br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %] |
128 |
[% END %] |
131 |
[%- IF ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %] |
129 |
[% END %] |
132 |
[%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %] |
130 |
[% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %] |
133 |
[% END %] |
131 |
<br /> |
134 |
[% END %] |
132 |
</td> |
135 |
[% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %] |
133 |
<td> |
136 |
<br /> |
134 |
[% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %] |
137 |
</td> |
135 |
</td> |
138 |
<td> |
136 |
<td> |
139 |
[% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %] |
137 |
<input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" /> |
140 |
</td> |
138 |
</td> |
141 |
<td> |
139 |
<td> |
142 |
<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 |
</td> |
141 |
</td> |
144 |
<td> |
142 |
<td> |
145 |
<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' %] |
146 |
</td> |
144 |
[% uncertainpriceorder.quantity | html %] |
147 |
<td> |
145 |
<input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" /> |
148 |
[% IF basket.effective_create_items == 'ordering' %] |
146 |
[% ELSE %] |
149 |
[% 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 %]" /> |
150 |
<input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" /> |
148 |
[% END %] |
151 |
[% ELSE %] |
149 |
</td> |
152 |
<input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" /> |
150 |
<td class="actions"> |
153 |
[% END %] |
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> |
154 |
</td> |
152 |
</td> |
155 |
<td class="actions"> |
153 |
</tr> |
156 |
<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> |
154 |
[% END %] |
157 |
</td> |
155 |
</tbody> |
158 |
</tr> |
156 |
</table> |
159 |
[% END %] |
157 |
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Save" /></fieldset> |
160 |
</tbody> |
158 |
</form> |
161 |
</table> |
|
|
162 |
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Save" /></fieldset> |
163 |
</form> |
164 |
</div> <!-- /.page-section --> |
159 |
[% END %] |
165 |
[% END %] |
160 |
|
166 |
|
161 |
</main> |
167 |
</main> |
162 |
- |
|
|