[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Branches %] [% USE ColumnsSettings %] [% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Late orders [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'acquisitions-search.inc' %]

[% IF ( Supplier ) %][% Supplier | html %] : [% END %]Late orders

[% IF error_claim %] [% IF ( error_claim == "no_email" ) %]
This vendor has no email
[% ELSIF ( error_claim == "no_order_selected" ) %]
No order selected
[% ELSE %]
[% error_claim | html %]
[% END %] [% END %] [% IF info_claim %]
Email has been sent.
[% END %] [% IF lateorders.count %]
[% IF ( letters ) %]

[% END %] [% SET total = 0 %] [% IF Supplier %] [% ELSE %] [% END %] [% FOREACH lateorder IN lateorders %] [% END %]
Check all
Uncheck all
Order line Order date Estimated delivery date Vendor Information Quantity Total cost Basket Basket group Library Fund Claims count Claimed date Internal note Vendor note ISBN
[% lateorder.ordernumber | $raw %] [% lateorder.basket.closedate | $KohaDates %] ([% lateorder.basket.late_since_days | html %] days) [% SET estimated_delivery_date = lateorder.get_column('estimated_delivery_date') %] [% IF estimated_delivery_date %] [% estimated_delivery_date | $KohaDates %] [% END %] [% lateorder.basket.bookseller.name | html %] ([% lateorder.basket.bookseller.id | html %]) [% lateorder.biblio.title | html %] [% IF ( lateorder.biblio.author ) %]
Author: [% lateorder.biblio.author | html %][% END %] [% IF ( lateorder.biblio.biblioitem.publishercode ) %]
Published by: [% lateorder.biblio.biblioitem.publishercode | html %] [% IF ( lateorder.biblio.biblioitem.publicationyear ) %] in [% lateorder.biblio.biblioitem.publicationyear | html %] [% END %] [% END %]
[% lateorder.quantity %] [% SET subtotal = (lateorder.quantity - lateorder.quantityreceived) * lateorder.rrp %] [% SET total = total + subtotal %] [% lateorder.rrp | html %]x[% lateorder.quantity - lateorder.quantityreceived | html %] = [% subtotal | $Price %] [% IF ( CAN_user_acquisition_order_manage ) %] [% lateorder.basket.basketname | html %] ([% lateorder.basketno | html %]) [% ELSE %] [% lateorder.basket.basketname | html %] ([% lateorder.basketno | html %]) [% END %] [% IF ( lateorder.basket.basketgroupid ) %] [% IF ( CAN_user_acquisition_group_manage ) %] [% lateorder.basket.basket_group.name | html %] ([% lateorder.basket.basketgroupid | html %]) [% ELSE %] [% lateorder.basket.basket_group.name | html %] ([% lateorder.basket.basketgroupid | html %]) [% END %] [% END %] [% Branches.GetName( lateorder.basket.authorizer.branchcode ) | html %] [% lateorder.fund.budget_name | html %] [% lateorder.claims.count | html %] [% FOR claim IN lateorder.claims %] [% claim.claimed_on | $KohaDates %] [% UNLESS loop.last %]
[% END %] [% END %]
[% IF lateorder.order_internalnote %]

[% lateorder.order_internalnote | html %] Edit internal note

[% ELSE %] Add internal note [% END %]
[% IF lateorder.order_vendornote %]

[% lateorder.order_vendornote | html %] Edit vendor note

[% ELSE %] Add vendor note [% END %]
[% lateorder.biblio.biblioitem.isbn | $raw %]
Total [% total | $Price %]  

Export as CSV

[% ELSE %]

There are no late orders.

[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/acquisitions-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]