View | Details | Raw Unified | Return to bug 38262
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt (-1 / +2 lines)
Lines 30-36 Link Here
30
</head>
30
</head>
31
31
32
[% marcfield_tables = ['subscription', 'aqorders'] %]
32
[% marcfield_tables = ['subscription', 'aqorders'] %]
33
[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices', 'erm_licenses', 'erm_agreements', 'erm_packages'] %]
33
[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices', 'erm_licenses', 'erm_agreements', 'erm_packages', 'aqbooksellers:vendor'] %]
34
[% show_marcfield = marcfield_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %]
34
[% show_marcfield = marcfield_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %]
35
[% show_searchable = searchable_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %]
35
[% show_searchable = searchable_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %]
36
36
Lines 130-135 Link Here
130
                        [% IF CAN_user_acquisition_order_manage %]
130
                        [% IF CAN_user_acquisition_order_manage %]
131
                            [% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %]
131
                            [% WRAPPER table_option value="aqbasket" %]<span>Order baskets</span>[% END %]
132
                            [% WRAPPER table_option value="aqorders" %]<span>Order lines</span>[% END %]
132
                            [% WRAPPER table_option value="aqorders" %]<span>Order lines</span>[% END %]
133
                            [% WRAPPER table_option value="aqbooksellers:vendor" %]<span>Vendors</span>[% END %]
133
                        [% END %]
134
                        [% END %]
134
                    </ul>
135
                    </ul>
135
                [% END %]
136
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/fetch/acquisition-api-client.js (-1 / +1 lines)
Lines 21-27 export class AcquisitionAPIClient { Link Here
21
                    endpoint: "vendors/" + id,
21
                    endpoint: "vendors/" + id,
22
                    headers: {
22
                    headers: {
23
                        "x-koha-embed":
23
                        "x-koha-embed":
24
                            "aliases,subscriptions+count,interfaces,contacts,contracts,baskets+count,invoices+count",
24
                            "aliases,subscriptions+count,interfaces,contacts,contracts,baskets+count,invoices+count,extended_attributes,+strings",
25
                    },
25
                    },
26
                }),
26
                }),
27
            getAll: (query, params) =>
27
            getAll: (query, params) =>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue (-2 / +4 lines)
Lines 169-174 export default { Link Here
169
            additionalToolbarButtons,
169
            additionalToolbarButtons,
170
            defaultToolbarButtons,
170
            defaultToolbarButtons,
171
            stickyToolbar: ["Form"],
171
            stickyToolbar: ["Form"],
172
            extendedAttributesResourceType: "vendor",
173
            extendedAttributesFieldGroup: "Details",
172
            resourceAttrs: [
174
            resourceAttrs: [
173
                {
175
                {
174
                    name: "id",
176
                    name: "id",
Lines 611-617 export default { Link Here
611
613
612
        const tableOptions = {
614
        const tableOptions = {
613
            options: {
615
            options: {
614
                embed: "aliases,baskets+count,subscriptions+count,invoices+count",
616
                embed: "aliases,baskets+count,subscriptions+count,invoices+count,extended_attributes,+strings",
615
            },
617
            },
616
            url: baseResource.getResourceTableUrl(),
618
            url: baseResource.getResourceTableUrl(),
617
            table_settings: baseResource.vendorTableSettings,
619
            table_settings: baseResource.vendorTableSettings,
Lines 710-715 export default { Link Here
710
            delete vendor.subscriptions;
712
            delete vendor.subscriptions;
711
            delete vendor.contracts;
713
            delete vendor.contracts;
712
            delete vendor.invoices_count;
714
            delete vendor.invoices_count;
715
            delete vendor._strings;
713
716
714
            if (vendor.discount && !verifyDiscountValue(vendor.discount))
717
            if (vendor.discount && !verifyDiscountValue(vendor.discount))
715
                errors.push($__("Invalid discount value"));
718
                errors.push($__("Invalid discount value"));
716
- 

Return to bug 38262