Bug 38010: (follow-up) Make vendor table columns configurable

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Matt Blenkinsop 2025-05-06 11:03:46 +01:00 committed by Katrin Fischer
parent 0a79524c0c
commit 3e68c4cf2e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 27 additions and 2 deletions

View File

@ -254,6 +254,27 @@ modules:
columnname: actions
cannot_be_toggled: 1
cannot_be_modified: 1
vendors:
vendors:
columns:
-
columnname: name
-
columnname: status
-
columnname: type
-
columnname: invoice_currency
-
columnname: baskets
-
columnname: subscriptions
-
columnname: actions
cannot_be_toggled: 1
cannot_be_modified: 1
admin:
cities:
table_cities:

View File

@ -30,7 +30,9 @@
[% INCLUDE 'js-patron-format.inc' %]
[% INCLUDE 'js-date-format.inc' %]
[% INCLUDE 'format_price.inc' %]
<script>
const vendorTableSettings = [% TablesSettings.GetTableSettings( 'acqui', 'vendors', 'vendors', 'json' ) | $raw %];
</script>
[% Asset.js("js/vue/dist/acquisitions.js") | $raw %]
[% INCLUDE 'select2.inc' %]
[% END %]

View File

@ -56,6 +56,7 @@ export default {
setMessage,
escape_str,
isUserPermitted,
vendorTableSettings,
};
},
data() {
@ -70,6 +71,7 @@ export default {
embed: "aliases,baskets+count,subscriptions+count,invoices+count",
},
url: () => this.tableURL(),
table_settings: this.vendorTableSettings,
add_filters: true,
filters_options: {
1: [
@ -227,7 +229,7 @@ export default {
},
},
{
title: __("Currency"),
title: __("Invoice currency"),
data: "invoice_currency",
searchable: true,
orderable: true,