X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Facqui%2Fparcel.tt;h=ee4d8d655b7854b87c932b3265d0e09db0c14de4;hb=b29493265b3ae9f660eee2d4b911da036d100b0d;hp=eade72f547e76aa2c2c29df0ed4e11a144c3a343;hpb=970ff591d9adb4aa8cac85ba067e00a37060fa08;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index eade72f547..ee4d8d655b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -1,28 +1,38 @@ +[% USE Koha %] +[% USE KohaDates %] +[% USE Price %] +[% USE currency = format('%.2f') -%] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › [% IF ( date ) %] - Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% formatteddatereceived %][% ELSE %]Receive orders from [% name %][% END %] - + Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %] + [% INCLUDE 'doc-head-close.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - -[% INCLUDE 'greybox.inc' %] - +[% INCLUDE 'datatables.inc' %] + + + @@ -133,12 +147,12 @@ [% INCLUDE 'acquisitions-search.inc' %] [% END %]

- [% IF ( datereceived ) %] - Receipt summary for [% name %] [% IF ( invoice ) %] [ [% invoice %] ] [% END %] on [% formatteddatereceived %] + [% IF datereceived %] + Receipt summary for [% name %] [% IF ( invoice ) %] [ [% invoice |html %] ] [% END %] on [% datereceived | $KohaDates %] [% ELSE %] Receive orders from [% name %] [% END %] @@ -179,7 +193,7 @@ [% END %] [% IF (error_cancelling_receipt) %] -
+
Cannot cancel receipt. Possible reasons :
  • @@ -196,17 +210,39 @@
[% END %] + [% IF error_invoice_not_known %] +
+ The invoice referenced by this invoiceid does not exist. +
+ [% END %] + +[% UNLESS no_orders_to_display %]
-

Invoice number: [% invoice %] Received by: [% loggedinusername %] On: [% formatteddatereceived %]

+

Invoice number: [% invoice |html %] Received by: [% loggedinusername %] On: [% datereceived | $KohaDates %]

[% UNLESS (invoiceclosedate) %] - [% ELSE %]

Invoice is closed, so you can't receive orders anymore. @@ -303,76 +343,125 @@

Already received

- [% IF ( loop_received ) %]
- - - - - - - - - - - - - + + + + + + + + + + + + + + + + + [% FOREACH key IN subtotal_for_funds.keys.sort %] + + [% IF invoiceincgst %] + + [% ELSE %] + + [% END %] + + + + + + + [% END %] - - + + [% FOREACH book_foot IN book_foot_loop %] - - + + [% END %] - - + + - - [% FOREACH loop_receive IN loop_received %] + + [% FOREACH order IN loop_received %] - - - + + + + - - - - - + + + + + + @@ -380,10 +469,27 @@
BasketOrder lineSummaryView recordQuantityEst costActual costTOTAL
BasketBasket groupOrder lineHoldsSummaryView recordQuantityFundEst costActual costTOTAL
(Tax inc.)(Tax exc.)Subtotal for [% key %][% subtotal_for_funds.$key.ecost | $Price %][% subtotal_for_funds.$key.unitprice | $Price %]  
Total tax exc.[% total_gste %]Total tax exc.[% total_tax_excluded | $Price %]
Total (GST [% book_foot.gstrate * 100 | format ("%.1f") %]%)[% book_foot.value %]Total (GST [% book_foot.tax_rate * 100 %]%)[% book_foot.tax_value | $Price %]
Total tax inc.[% total_gsti %]Total tax inc.[% total_tax_included | $Price %]
[% loop_receive.basketno %][% loop_receive.ordernumber %][% loop_receive.title |html %] - [% IF ( loop_receive.author ) %] / [% loop_receive.author %][% END %] - [% IF ( loop_receive.isbn ) %] - [% loop_receive.isbn %][% END %] - [% IF ( loop_receive.publishercode ) %]
Publisher :[% loop_receive.publishercode %][% END %] - [% IF ( loop_receive.suggestionid ) %] +
[% order.basketname %] ([% order.basketno %]) + [% IF order.basketgroupid %] + [% order.basketgroupname %] ([% order.basketgroupid %]) + [% ELSE %] + No basket group + [% END %] + + [% order.ordernumber %] + [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %] + ([% order.parent_ordernumber %]) + [% END %] + + [% IF order.holds > 0 %] + [% order.holds %] + [% ELSE %] + 0 + [% END %] + [% order.title |html %] + [% IF ( order.author ) %] / [% order.author %][% END %] + [% IF ( order.isbn ) %] - [% order.isbn %][% END %] + [% IF ( order.publishercode ) %] +
Publisher: [% order.publishercode %] + [%- IF ( order.publicationyear > 0) -%], [% order.publicationyear %] + [%- ELSIF ( order.copyrightdate > 0) -%] [% order.copyrightdate %] + [% END %] + [% END %] + [% IF ( order.suggestionid ) %]
- Suggested by: [% loop_receive.surnamesuggestedby %][% IF ( loop_receive.firstnamesuggestedby ) %], [% loop_receive.firstnamesuggestedby %] [% END %] - (suggestion #[% loop_receive.suggestionid %]) + Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %] + (suggestion #[% order.suggestionid %]) [% END %]
MARC | Card[% loop_receive.quantityreceived %][% loop_receive.ecost %][% loop_receive.unitprice %][% loop_receive.total %]MARC | Card[% order.quantityreceived %][% order.budget.budget_name %][% order.ecost | $Price %][% order.unitprice | $Price %][% order.total | $Price %] - [% IF (loop_receive.cannot_cancel) %] + [% IF loop_receive.cannot_cancel or ( order.basket.effective_create_items == "receiving" and loop_receive.holds > 0 ) %] + [% IF loop_receive.cannot_cancel %] [% span_title = BLOCK %] Cannot cancel receipt of this order line because it was created from a partial receipt of order line no. - [% loop_receive.parent_ordernumber %], which is + [% order.parent_ordernumber %], which is already received. Try cancelling this one first and retry. [% END %] - - Can't cancel receipt - + [% ELSE %] + [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %] + [%# Some additional checks should be added in the pl file %] + [% span_title = BLOCK %] + Cannot cancel receipt of this order line because at least one reservation exists on the records. + [% END %] + [% END %] + + Can't cancel receipt + [% ELSE %] - Cancel receipt + Cancel receipt [% END %]
+ [% ELSE %]There are no received orders.[% END %]
- + + [% IF (invoiceclosedate) %] View invoice [% ELSE %] @@ -395,49 +501,49 @@ [% END %] +[% END %] +
-
-
-
- -

Filter

- -
    -
  1. - - -
  2. -
  3. - - -
  4. - -
  5. - - -
  6. - [% IF (UNIMARC) %] +
    + +
    +

    Filter

    +
      +
    1. + + +
    2. +
    3. + + +
    4. +
    5. + + +
    6. +
    7. + + +
    8. + [% IF (UNIMARC) %]
    9. - - + +
    10. - [% END %] -
    -
    - - - - Clear -
    - - -
    - + [% END %] +
+
+ + + + Clear +
+
+ [% INCLUDE 'acquisitions-menu.inc' %]
[% INCLUDE 'intranet-bottom.inc' %] -