Lines 1-3
Link Here
|
|
|
1 |
[% USE Koha %] |
1 |
[% USE currency = format('%.2f') -%] |
2 |
[% USE currency = format('%.2f') -%] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
4 |
<title>Koha › Acquisitions › [% IF ( date ) %] |
Lines 441-447
Link Here
|
441 |
<td>[% order.unitprice %]</td> |
442 |
<td>[% order.unitprice %]</td> |
442 |
<td>[% order.total %]</td> |
443 |
<td>[% order.total %]</td> |
443 |
<td> |
444 |
<td> |
444 |
[% IF (order.cannot_cancel) %] |
445 |
[% IF loop_receive.cannot_cancel or ( Koha.Preference("AcqCreateItem") == "receiving" and loop_receive.holds > 0 ) %] |
|
|
446 |
[% IF loop_receive.cannot_cancel %] |
445 |
[% span_title = BLOCK %] |
447 |
[% span_title = BLOCK %] |
446 |
Cannot cancel receipt of this order line because it |
448 |
Cannot cancel receipt of this order line because it |
447 |
was created from a partial receipt of order line no. |
449 |
was created from a partial receipt of order line no. |
Lines 449-457
Link Here
|
449 |
already received. Try cancelling this one first and |
451 |
already received. Try cancelling this one first and |
450 |
retry. |
452 |
retry. |
451 |
[% END %] |
453 |
[% END %] |
452 |
<span title="[% span_title | collapse %]"> |
454 |
[% ELSE %] |
453 |
Can't cancel receipt |
455 |
[%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %] |
454 |
</span> |
456 |
[%# Some additional checks should be added in the pl file %] |
|
|
457 |
[% span_title = BLOCK %] |
458 |
Cannot cancel receipt of this order line because at least one reservation exists on the records. |
459 |
[% END %] |
460 |
[% END %] |
461 |
<span title="[% span_title | collapse %]"> |
462 |
Can't cancel receipt |
463 |
</span> |
455 |
[% ELSE %] |
464 |
[% ELSE %] |
456 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a> |
465 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a> |
457 |
[% END %] |
466 |
[% END %] |
458 |
- |
|
|