// Copyright (c) Pickware GmbH. All rights reserved.
// This file is part of software that is released under a proprietary license.
// You must not copy, modify, distribute, make publicly available, or execute
// its contents or parts thereof without express permission by the copyright
// holder, unless otherwise permitted by law.

ViisonCommonApp.registerExtraModelFields(
    'Shopware.apps.Order.model.Order',
    [
        { name: 'viisonUndispatchedTrackingCodes', type: 'string', useNull: true },
        { name: 'pickwareWmsInternalPickingInstructions', type: 'string', useNull: true },
        {
            name: 'viisonPickwareMobileIsDisplayedInPickingApp',
            type: 'boolean',
            convert: function (value, record) {
                return Ext.isArray(record.raw.viisonPickwareMobilePickProfileFilterResult) && record.raw.viisonPickwareMobilePickProfileFilterResult.length === 0;
            },
        },
    ]
);
