Bug 38010: (follow-up) Make vendor table columns configurable
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
0a79524c0c
commit
3e68c4cf2e
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 %]
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue