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 431-437
Link Here
|
431 |
<td>[% loop_receive.unitprice %]</td> |
432 |
<td>[% loop_receive.unitprice %]</td> |
432 |
<td>[% loop_receive.total %]</td> |
433 |
<td>[% loop_receive.total %]</td> |
433 |
<td> |
434 |
<td> |
434 |
[% IF (loop_receive.cannot_cancel) %] |
435 |
[% IF loop_receive.cannot_cancel or ( Koha.Preference("AcqCreateItem") == "receiving" and loop_receive.holds > 0 ) %] |
|
|
436 |
[% IF loop_receive.cannot_cancel %] |
435 |
[% span_title = BLOCK %] |
437 |
[% span_title = BLOCK %] |
436 |
Cannot cancel receipt of this order line because it |
438 |
Cannot cancel receipt of this order line because it |
437 |
was created from a partial receipt of order line no. |
439 |
was created from a partial receipt of order line no. |
Lines 439-447
Link Here
|
439 |
already received. Try cancelling this one first and |
441 |
already received. Try cancelling this one first and |
440 |
retry. |
442 |
retry. |
441 |
[% END %] |
443 |
[% END %] |
442 |
<span title="[% span_title | collapse %]"> |
444 |
[% ELSE %] |
443 |
Can't cancel receipt |
445 |
[%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %] |
444 |
</span> |
446 |
[%# Some additional checks should be added in the pl file %] |
|
|
447 |
[% span_title = BLOCK %] |
448 |
Cannot cancel receipt of this order line because at least one reservation exists on the records. |
449 |
[% END %] |
450 |
[% END %] |
451 |
<span title="[% span_title | collapse %]"> |
452 |
Can't cancel receipt |
453 |
</span> |
445 |
[% ELSE %] |
454 |
[% ELSE %] |
446 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% loop_receive.ordernumber %]">Cancel receipt</a> |
455 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% loop_receive.ordernumber %]">Cancel receipt</a> |
447 |
[% END %] |
456 |
[% END %] |
448 |
- |
|
|