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

(-)a/Koha/Schema/Result/Aqbookseller.pm (+16 lines)
Lines 535-540 __PACKAGE__->add_columns( Link Here
535
    '+invoiceincgst' => { is_boolean => 1 },
535
    '+invoiceincgst' => { is_boolean => 1 },
536
);
536
);
537
537
538
539
=head2 aliases
540
541
Type: has_many
542
543
Related object: L<Koha::Schema::Result::AqbooksellerAlias>
544
545
=cut
546
547
__PACKAGE__->has_many(
548
    "aliases",
549
    "Koha::Schema::Result::AqbooksellerAlias",
550
    { "foreign.vendor_id" => "self.id" },
551
    { cascade_copy        => 0, cascade_delete => 0 },
552
);
553
538
sub koha_object_class {
554
sub koha_object_class {
539
    'Koha::Acquisition::Bookseller';
555
    'Koha::Acquisition::Bookseller';
540
}
556
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue (-4 / +7 lines)
Lines 60-70 Link Here
60
                    {{ vendor.accountnumber }}
60
                    {{ vendor.accountnumber }}
61
                </span>
61
                </span>
62
            </li>
62
            </li>
63
            <li v-if="vendor.aliases.count">
63
            <li v-if="vendor.aliases.length">
64
                <label>{{ $__("Aliases") }}:</label>
64
                <label>{{ $__("Aliases") }}:</label>
65
                <ul>
65
                <ul style="margin-left: 8rem">
66
                    <li v-for="alias in vendor.aliases" :key="alias">
66
                    <li
67
                        {{ alias }}
67
                        v-for="(alias, i) in vendor.aliases"
68
                        :key="alias.alias_id"
69
                    >
70
                        {{ $__("Alias") + " " + (i + 1) }}: {{ alias.alias }}
68
                    </li>
71
                    </li>
69
                </ul>
72
                </ul>
70
            </li>
73
            </li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorList.vue (-2 / +1 lines)
Lines 172-178 export default { Link Here
172
            return [
172
            return [
173
                {
173
                {
174
                    title: __("Name"),
174
                    title: __("Name"),
175
                    data: "me.name:me.id",
175
                    data: "me.name:aliases.alias:me.id",
176
                    searchable: true,
176
                    searchable: true,
177
                    orderable: true,
177
                    orderable: true,
178
                    render(data, type, row, meta) {
178
                    render(data, type, row, meta) {
179
- 

Return to bug 38010