<core:FragmentDefinition
    xmlns="sap.m"
    xmlns:core="sap.ui.core"
    xmlns:table="sap.ui.table">
    <table:Table
        id="lostItemsListMaterialTable"
        selectionMode="None"
        ariaLabelledBy="title"
        enableBusyIndicator="true"
        visibleRowCountMode="Auto">
        <table:extension>
            <OverflowToolbar style="Clear">
                <Title
                    id="lostItemsListMaterialTableTitle"
                    text="{path: '$count'} {i18n>Dash.StockListTableTitle}" />
                <ToolbarSpacer />
                <Button
                    icon="sap-icon://excel-attachment"
                    tooltip="{i18n>Dash.ExcelExport}"
                    press="onLostItemsListMaterialExportPress" />
            </OverflowToolbar>
        </table:extension>
        <table:columns>
            <table:Column
                sortProperty="VKO_FILIALENAME"
                autoResizable="true"
            >
                <Label
                    text="{i18n>Dash.Branch}"
                    wrapping="true"
                    wrappingType="Hyphenated"
                />
                <table:template>
                    <Text
                        text="{VKO_FILIALENAME}"
                        tooltip="{VKO_FILIALENAME}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="WARENGRUPPE_BEZEICHNUNG"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.ProductGroup}"
                    wrapping="true"
                    wrappingType="Hyphenated" />
                <table:template>
                    <Text
                        text="{WARENGRUPPE_BEZEICHNUNG}"
                        tooltip="{WARENGRUPPE_BEZEICHNUNG}"
                        wrapping="false" />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="ZMB_MATNR"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.MaterialId}"
                    wrapping="true"
                    wrappingType="Hyphenated"
                />
                <table:template>
                    <Text
                        text="{
                            path: 'ZMB_MATNR',
                            targetType: 'any',
                            formatter: '.formatter.formatMaterialNumber'
                        }"
                        tooltip="{ZMB_MATNR}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="BTX_TEXT"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.MaterialName}"
                    wrapping="true"
                    wrappingType="Hyphenated"
                />
                <table:template>
                    <Text
                        text="{BTX_TEXT}"
                        tooltip="{BTX_TEXT}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="LOST_SINCE_START_OF_YEAR"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.LostItemsSinceBeginningOfYear}"
                    wrapping="true"
                    wrappingType="Hyphenated"
                />
                <table:template>
                    <Text
                        text="{LOST_SINCE_START_OF_YEAR}"
                        tooltip="{LOST_SINCE_START_OF_YEAR}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="LOST_IN_LAST_12_MONTHS"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.LostItemsLast12Years}"
                    wrapping="true"
                    wrappingType="Hyphenated"
                />
                <table:template>
                    <Text
                        text="{LOST_IN_LAST_12_MONTHS}"
                        tooltip="{LOST_IN_LAST_12_MONTHS}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
        </table:columns>
    </table:Table>
</core:FragmentDefinition>