X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Facqui%2Fbasket.tt;h=f7048b2f26882b11f55fa57199e8465ba7c14d2e;hb=2874dfb1f1dbac7f0f560c3d3b5abb1ca44494bd;hp=8cbc46e04751c4d37073ad78cb38f9cb6b279c5c;hpb=fe193210815b33efbefbf518ccc13329f20eeefc;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 8cbc46e047..f7048b2f26 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -1,166 +1,159 @@ +[% USE raw %] +[% USE Asset %] +[% BLOCK csv_export %] +
+ Export as CSV + + +
+[% END %] [% USE KohaDates %] +[% USE Branches %] +[% USE Price %] +[% USE AuthorisedValues %] +[% USE ColumnsSettings %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %] - +Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname | html %] ([% basketno | html %]) for [% booksellername | html %] +[% Asset.css("css/datatables.css") | $raw %] [% INCLUDE 'doc-head-close.inc' %] - -[% INCLUDE 'datatables-strings.inc' %] - - - - -[% UNLESS ( closedate ) %] - -[% ELSE %] - -[% UNLESS ( grouped ) %] - -[% END %] -[% END %] - - + [% INCLUDE 'header.inc' %] [% INCLUDE 'acquisitions-search.inc' %] - +
+ [% IF (cannot_manage_basket) %] +
+

You are not authorised to manage this basket.

+
+ [% ELSE %]
- [% UNLESS ( confirm_close ) %] + [% IF !confirm_close && !edi_confirm %] [% UNLESS ( selectbasketg ) %] [% UNLESS ( closedate ) %] + [% UNLESS ( delete_confirmed ) %]
- - - - [% IF ( unclosable ) %] + [% IF active %] + + [% END %] + + [%# FIXME This action should not be available for everyone %] + + [% IF ( unclosable ) %] [% ELSIF ( uncertainprices ) %] - + + [% ELSE %] [% END %] - + [% PROCESS csv_export %] + + [% IF ediaccount %] + + [% END %] + + [% IF ( active && books_loop ) %] +
+
+ + + +
+
+ [% END %] +
+ [% END %] + + + + [% ELSE %] [% UNLESS ( grouped ) %] [% END %] [% END %] @@ -170,118 +163,253 @@

Vendor not found

[% ELSE %] [% IF ( delete_confirmed ) %] -

Basket deleted

- +
+

Basket deleted

+
+ [% IF (cannotdelbiblios) %] +
+

Warning:

+

The following records could not be deleted:

+
    + [% FOREACH cannotdelbiblio IN cannotdelbiblios %] +
  • [% cannotdelbiblio.title | html %] by [% cannotdelbiblio.author | html %]: +
      + [% IF (cannotdelbiblio.itemcount) %]
    • [% cannotdelbiblio.itemcount | html %] item(s) attached.
    • [% END %] + [% IF (cannotdelbiblio.subscriptions) %]
    • [% cannotdelbiblio.subscriptions | html %] subscription(s) attached.
    • [% END %] + [% IF (cannotdelbiblio.countbiblio) %]
    • [% cannotdelbiblio.countbiblio | html %] order(s) attached.
    • [% END %] + [% IF (cannotdelbiblio.othererror) %]
    • Unknown error.
    • [% END %] +
    +
  • + [% END %] +
+
+ Click here to go back to booksellers page + [% ELSE %] + Show baskets for vendor [% booksellername | html %] Show all active baskets + [% END %] [% ELSE %] -

[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]

- [% IF ( delete_confirm ) %] -

- - - Yes, delete this basket! - - - - - Cancel - - -

+ + [% FOR m IN messages %] +
+ [% SWITCH m.code %] + [% CASE 'no_email' %] + This vendor has no contact selected for sending orders to or is missing an e-mail address. + [% CASE 'no_basketno' %] + No basket given. + [% CASE 'no_letter' %] + There is no notice template with code ACQORDER defined. + [% CASE 'email_sent' %] + Order e-mail was sent to the vendor. + [% CASE %] + ERROR! - [% m.code | html %] + [% END %] +
[% END %] +

[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname | html %] ([% basketno | html %]) for [% booksellername | html %]

[% IF ( basketno ) %]
    - [% IF ( basketnote ) %]
  1. Internal note: [% basketnote %]
  2. [% END %] - [% IF ( basketbooksellernote ) %]
  3. Vendor note: [% basketbooksellernote %]
  4. [% END %] + [% IF ( basketnote ) %]
  5. Internal note: [% basketnote | html %]
  6. [% END %] + [% IF ( basketbooksellernote ) %]
  7. Vendor note: [% basketbooksellernote | html %]
  8. [% END %] [% IF ( basketcontractno ) %] -
  9. Contract name: [% basketcontractname %]
  10. +
  11. Contract name: [% basketcontractname | html %]
  12. + [% END %] + [% IF deliveryplace %]
  13. Delivery place: [% Branches.GetName( deliveryplace ) | html %]
  14. [% END %] + [% IF billingplace %]
  15. Billing place: [% Branches.GetName( billingplace ) | html %]
  16. [% END %] + [% IF ( authorisedbyname ) %]
  17. Created by: [% authorisedbyname | html %]
  18. [% END %] +
  19. +
    + Managed by: +
    +
      + [% FOREACH user IN users %] +
    • + [% user.firstname | html %] [% user.surname | html %] + Delete user +
    • + [% END %] +
    • + Add user +
    • + +
    +
    + + + +
    + +
  20. +
  21. + Managing library: + [% IF basketbranchcode %] + [% Branches.GetName( basketbranchcode ) | html %] + Change library + [% ELSE %] + No library + Set library + [% END %] +
  22. + [% IF branches_loop.size %] + [% END %] - [% IF ( deliveryplace ) %]
  23. Delivery place: [% deliveryplace %]
  24. [% END %] - [% IF ( billingplace ) %]
  25. Billing place: [% billingplace %]
  26. [% END %] - [% IF ( authorisedbyname ) %]
  27. Managed by: [% authorisedbyname %]
  28. [% END %] - [% IF ( creationdate ) %]
  29. Opened on: [% creationdate | $KohaDates %]
  30. [% END %] - [% IF ( closedate ) %]
  31. Closed on: [% closedate | $KohaDates %]
  32. [% END %] - [% IF ( estimateddeliverydate ) %]
  33. Estimated delivery date: [% estimateddeliverydate | $KohaDates %]
  34. [% END %]
- [% IF ( closedate ) %] +
- [% IF ( CAN_user_acquisition_group_manage ) %] -
- [% END %] +
    + [% IF ( creationdate ) %] +
  1. Opened on: [% creationdate | $KohaDates %]
  2. + [% END %] + [% IF ( closedate ) %] +
  3. Closed on: [% closedate | $KohaDates %]
  4. + [% END %] + [% IF ( estimateddeliverydate ) %] +
  5. Estimated delivery date: [% estimateddeliverydate | $KohaDates %]
  6. + [% END %] +
  7. Orders are standing: [% IF is_standing %]Yes[% ELSE %]No[% END %]
  8. + + [% IF basket.create_items %] +
  9. + Create items when: + [% SWITCH basket.create_items %] + [% CASE 'receiving' %]Receiving items + [% CASE 'cataloguing' %]Cataloguing items + [% CASE %]Placing orders + [% END %] +
  10. + [% END %] +
+ + [% IF ( closedate ) %]
    -
  1. - Basket group: - [% IF basketgroup.closed %] - [% basketgroup.name %] (closed) - [% ELSIF ( ! CAN_user_acquisition_group_manage ) %] - [%- IF basketgroup.name -%] - [% basketgroup.name %] - [%- ELSE -%] - No group - [%- END -%] - [% ELSE %] - - - - - - [% END %] -
  2. - [% IF ( basketgroup.deliveryplacename ) %]
  3. Basket group delivery placename: [% basketgroup.deliveryplacename %]
  4. [% END %] - [% IF ( basketgroup.billingplacename ) %]
  5. Basket group billing place: [% basketgroup.billingplacename %]
  6. [% END %] + + [% IF ( CAN_user_acquisition_group_manage ) %] + + [% END # /IF ( CAN_user_acquisition_group_manage ) %] + [% IF basketgroup.deliveryplace %] +
  7. + Basket group delivery placename: [% Branches.GetName( basketgroup.deliveryplace ) | html %] +
  8. + [% END %] + [% IF basketgroup.billingplace %] +
  9. + Basket group billing place: [% Branches.GetName( basketgroup.billingplace ) | html %] +
  10. + [% END %]
- [% IF ( CAN_user_acquisition_group_manage ) %] - - [% END %] + [% END # /IF closeddate %]
- [% END %]
[% END %] + [% IF ( duplinbatch ) %]
+

Duplicate warning

+

Some records have not been automatically added because they match an existing record in your catalog:Display them

+
[% END %] - [% UNLESS ( delete_confirm ) %]
[% IF ( books_loop ) %] -

Orders

- +

Orders

+ - - - - + + + + + - - + + + [% IF ( active ) %] [% UNLESS ( closedate ) %] - - + + [% END %] [% END %] @@ -289,16 +417,19 @@ [% FOREACH foot_loo IN book_foot_loop %] - - - - - - - - + + + + + + + + + + + + - [% IF ( active ) %] [% UNLESS ( closedate ) %] @@ -309,16 +440,19 @@ [% END %] - - - - - - - - + + + + + + + + + + + + - [% IF ( active ) %] [% UNLESS ( closedate ) %] @@ -330,65 +464,103 @@ [% FOREACH books_loo IN books_loop %] - [% IF ( books_loo.order_received ) %][% ELSE %][% IF ( books_loo.toggle ) %][% ELSE %][% END %][% END %] + [% IF ( books_loo.order_received ) %] + + [% ELSE %] + + [% END %] + - - - - - - - - - - + [% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %] + [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %] + + + + + + + + + + + + [% IF ( active ) %] [% UNLESS ( closedate ) %] [% END %] @@ -407,14 +579,16 @@
No. OrderRRP tax exc.ecost tax exc.RRP tax inc.ecost tax inc.RRP tax exc.ecost tax exc.RRP tax inc.ecost tax inc.Replacement price Qty.Total tax exc. ([% currency %])Total tax inc. ([% currency %])Total tax exc. ([% currency | html %])Total tax inc. ([% currency | html %]) GST % GST FundSupplier reportModifyDeleteModifyCancel order
Total (GST [% foot_loo.gstgsti %])    [% foot_loo.quantity %][% foot_loo.totalgste %][% foot_loo.totalgsti %]Total (GST [% foot_loo.tax_rate * 100 | html %])     [% foot_loo.quantity | html %][% foot_loo.total_tax_excluded | $Price %][% foot_loo.total_tax_included | $Price %] [% foot_loo.tax_value | $Price %]  [% foot_loo.gstvalue %]  
Total ([% currency %])    [% total_quantity %][% total_gste %][% total_gsti %]Total ([% currency | html %])     [% total_quantity | html %][% total_tax_excluded | $Price %][% total_tax_included | $Price %] [% total_tax_value | $Price %]  [% total_gstvalue %]  
-

[% IF ( books_loo.order_received ) %] (rcvd)[% END %] - [% books_loo.title |html %] by [% books_loo.author %] + [% books_loo.ordernumber | html %] +

+

+ [% IF ( books_loo.order_received ) %] (rcvd)[% END %] + [% IF books_loo.title %] + [% books_loo.title | html %][% IF books_loo.author %] by [% books_loo.author | html %][% END %] + [% ELSE %] + Deleted bibliographic record, can't find title
+ [% END %]
- [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %] - [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %] - [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %] - [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %] - [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %] + [% IF ( books_loo.isbn ) %] - [% books_loo.isbn | html %][% END %] + [% IF ( books_loo.issn ) %] - [% books_loo.issn | html %][% END %] + [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode | html %][% END %] + [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear | html %] + [% ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate | html %][% END %] + [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END %] [% IF ( books_loo.suggestionid ) %]
- Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %] - (suggestion #[% books_loo.suggestionid %]) + Suggested by: [% books_loo.surnamesuggestedby | html %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby | html %] [% END %] + (suggestion #[% books_loo.suggestionid | html %]) [% END %]

- [% IF ( books_loo.notes ) %] -

Note: [% books_loo.notes|html %] [Change note]

+ [% IF ( books_loo.order_internalnote ) %] +

Internal note: [% books_loo.order_internalnote | html %] Edit internal note

+ [% ELSE %] + Add internal note + [% END %] + [% IF ( books_loo.order_vendornote ) %] +

Vendor note: [% books_loo.order_vendornote | html %] Edit vendor note

[% ELSE %] -

[Add note]

+ Add vendor note [% END %] + [% IF (books_loo.transferred_from) %] + [% basket = books_loo.transferred_from.basket %] + [% bookseller = books_loo.transferred_from.bookseller %] + [% timestamp = books_loo.transferred_from.timestamp %] +

Transferred from basket: + [% basket.basketname | html %] + ([% bookseller.name | html %]) + on + [% timestamp | $KohaDates %] + +

+ [% END %]
[% books_loo.rrpgste %][% books_loo.ecostgste %][% books_loo.rrpgsti %][% books_loo.ecostgsti %][% books_loo.quantity %][% books_loo.totalgste %][% books_loo.totalgsti %][% books_loo.gstgsti %][% books_loo.gstvalue %][% books_loo.budget_name %][% books_loo.rrp_tax_excluded | $Price | html %][% books_loo.ecost_tax_excluded | $Price | html %][% books_loo.rrp_tax_included | $Price | html %][% books_loo.ecost_tax_included | $Price | html %][% books_loo.replacementprice | $Price %][% books_loo.quantity | html %][% books_loo.total_tax_excluded | $Price | html %][% books_loo.total_tax_included | $Price | html %][% books_loo.tax_rate * 100 | html %][% books_loo.tax_value | $Price %][% books_loo.budget_name | html %][% books_loo.suppliers_report | html %] - Modify + Modify + [% UNLESS (books_loo.order_received) %] +
+ Transfer + [% END %]
[% IF ( books_loo.left_holds_on_order ) %] - Can't delete order
+ Can't cancel order
[% ELSE %] - Delete order
+ Cancel order
[% END %] [% IF ( books_loo.can_del_bib ) %] - Delete order and catalog record
+ Cancel order and delete catalog record
[% ELSE %] - Can't delete order and catalog record
+ Can't cancel order and delete catalog record
[% END %] [% IF ( books_loo.left_item ) %] - [% books_loo.items %] item(s) left
+ [% books_loo.items | html %] item(s) left
[% END %] [% IF ( books_loo.left_biblio ) %] - [% books_loo.biblios %] order(s) left
+ [% books_loo.biblios | html %] order(s) left
[% END %] [% IF ( books_loo.left_subscription ) %] - [% books_loo.subscriptions %] subscription(s) left
+ [% books_loo.subscriptions | html %] subscription(s) left
[% END %] [% IF ( books_loo.left_holds ) %] - [% books_loo.holds %] hold(s) left + [% books_loo.holds | html %] hold(s) left [% END %]
+ - - - - + + + + + - - + + @@ -423,32 +597,54 @@ [% FOREACH order IN cancelledorders_loop %] + - - - - - - - - - - + + + + + + + + + + [% END %] @@ -459,44 +655,314 @@ [% UNLESS ( closedate ) %] - +[% END %][%# IF (cannot_manage_basket) %]
-[% INCLUDE 'acquisitions-menu.inc' %] + [% INCLUDE 'vendor-menu.inc' %] + [% INCLUDE 'acquisitions-menu.inc' %]
+ + + + +[% MACRO jsinclude BLOCK %] + [% Asset.js("js/acquisitions-menu.js") | $raw %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] + [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %] + + + [% UNLESS ( closedate ) %] + + [% ELSE %] + + [% UNLESS ( grouped ) %] + + [% END %] + [% END %] + +[% END %] + [% INCLUDE 'intranet-bottom.inc' %]
No. OrderRRP tax exc.ecost tax exc.RRP tax inc.ecost tax inc.RRP tax exc.ecost tax exc.RRP tax inc.ecost tax inc.Replacement price Qty.Total tax exc. ([% currency %])Total tax inc. ([% currency %])Total tax exc. ([% currency | html %])Total tax inc. ([% currency | html %]) GST % GST Fund
+ [% order.ordernumber | html %] +

[% IF ( order.order_received ) %] (rcvd)[% END %] [% IF (order.title) %] - [% order.title |html %] by [% order.author %]
+ [% order.title | html %][% IF order.author %] by [% order.author | html %][% END %] [% ELSE %] - Deleted bibliographic record, can't find title
+ Deleted bibliographic record, can't find title + [% END %] +
+ [% IF ( order.order_internalnote ) %] [% order.order_internalnote | html %][% END %] + [% IF ( order.isbn ) %] - [% order.isbn | html %][% END %] + [% IF ( order.issn ) %] - [% order.issn | html %][% END %] + [% IF ( order.publishercode ) %], [% order.publishercode | html %][% END %] + [% IF ( order.publicationyear ) %], [% order.publicationyear | html %] + [% ELSIF ( order.copyrightdate ) %] [% order.copyrightdate | html %][% END %] + [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement | html %][% END %] + [% IF ( order.cancellationreason ) %] +
+ Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) | html %] [% END %] - [% IF ( order.notes ) %] [% order.notes %][% END %] - [% IF ( order.isbn ) %] - [% order.isbn %][% END %] - [% IF ( order.issn ) %] - [% order.issn %][% END %] - [% IF ( order.publishercode ) %], [% order.publishercode %][% END %] - [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %] - [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]

+ [% IF order.transferred_to %] + [% basket = order.transferred_to.basket %] + [% bookseller = order.transferred_to.bookseller %] + [% timestamp = order.transferred_to.timestamp %] +

Transferred to basket: + [% basket.basketname | html %] + ([% bookseller.name | html %]) + on + [% timestamp | $KohaDates %] + +

+ [% END %]
[% order.rrpgste %][% order.ecostgste %][% order.rrpgsti %][% order.ecostgsti %][% order.quantity %][% order.totalgste %][% order.totalgsti %][% order.gstgsti %][% order.gstvalue %][% order.budget_name %] + [% order.rrp_tax_excluded | $Price | html %][% order.ecost_tax_excluded | $Price | html %][% order.rrp_tax_included | $Price | html %][% order.ecost_tax_included | $Price | html %][% order.replacementprice | $Price %][% order.quantity | html %][% order.total_tax_excluded | $Price | html %][% order.total_tax_included | $Price | html %][% order.tax_rate * 100 | html %][% order.tax_value | $Price %][% order.budget_name | html %]