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 2176e79959..d9b27c670c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -563,35 +563,29 @@
| No. | -[% tp('noun', 'Order') | html %] | -RRP tax exc. | -Actual cost tax exc. | -Budgeted cost tax exc. | -RRP tax inc. | -Actual cost tax inc. | -Budgeted cost tax inc. | -Replacement price | -Qty. | -Total tax exc. ([% currency | html %]) | -Total tax inc. ([% currency | html %]) | -GST % | -GST | -Fund | -Estimated delivery date | -Statistic 1 | -Statistic 2 | -Invoice | - [% IF Koha.Preference('EDIFACT') && ediaccount %] -Supplier report | - [% END %] -Place hold | - [% IF ( active && !closedate ) %] -Modify | - [% END %] - [% IF !closedate || Koha.Preference('CancelOrdersInClosedBaskets') %] -Cancel order | - [% END %] +No. | +[% tp('noun', 'Order') | html %] | +RRP tax exc. | +Actual cost tax exc. | +Budgeted cost tax exc. | +RRP tax inc. | +Actual cost tax inc. | +Budgeted cost tax inc. | +Replacement price | +Qty. | +Total tax exc. ([% currency | html %]) | +Total tax inc. ([% currency | html %]) | +GST % | +GST | +Fund | +Estimated delivery date | +Statistic 1 | +Statistic 2 | +Invoice | +Supplier report | +Place hold | +Modify | +Cancel order | - [% IF Koha.Preference('EDIFACT') && ediaccount %] - | - [% END %] | - [% IF ( active && !closedate ) %] - | - [% END %] - [% IF !closedate || Koha.Preference('CancelOrdersInClosedBaskets') %] - | - [% END %] + | + | + | [% END %] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - [% IF Koha.Preference('EDIFACT') && ediaccount %] - | - [% END %] | - [% IF ( active && !closedate ) %] - | - [% END %] - [% IF !closedate || Koha.Preference('CancelOrdersInClosedBaskets') %] - | - [% END %] + | + | + | [% books_loo.suppliers_report | html %] | + [% ELSE %] +[% END %] | [% IF ( books_loo.biblionumber && CAN_user_reserveforothers_place_holds ) %] @@ -828,6 +812,8 @@ > [% END %] | + [% ELSE %] +[% END %] [% IF ( !closedate || Koha.Preference('CancelOrdersInClosedBaskets') ) %] | @@ -864,6 +850,8 @@ [% END %] [% END %] | + [% ELSE %] +[% END %] [% END %] @@ -1254,10 +1242,26 @@ $(document).ready(function() { var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders', 'json' ) | $raw %]; [% IF !(Koha.Preference('EDIFACT') && ediaccount) %] - // FIXME This cannot work correctly without bKohaColumnsUseNames - table_settings['columns'].splice(18, 1); + table_settings.columns.find(c => c.columnname == 'supplier_report').is_hidden = 1; + table_settings.columns.find(c => c.columnname == 'supplier_report').cannot_be_toggled = 1; + [% ELSE %] + table_settings.columns.find(c => c.columnname == 'supplier_report').is_hidden = 0; [% END %] + [% IF ( active && !closedate ) %] + table_settings.columns.find(c => c.columnname == 'modify').is_hidden = 1; + table_settings.columns.find(c => c.columnname == 'modify').cannot_be_toggled = 1; + [% ELSE %] + table_settings.columns.find(c => c.columnname == 'modify').is_hidden = 0; + [% END %] + [% IF !closedate || Koha.Preference('CancelOrdersInClosedBaskets') %] + table_settings.columns.find(c => c.columnname == 'cancel').is_hidden = 1; + table_settings.columns.find(c => c.columnname == 'modify').cannot_be_toggled = 1; + [% ELSE %] + table_settings.columns.find(c => c.columnname == 'cancel').is_hidden = 0; + [% END %] + $("#orders").kohaTable({ + bKohaColumnsUseNames: true, pagingType: "full", autoWidth: false, }, table_settings); |