<core:FragmentDefinition
    xmlns="sap.m"
    xmlns:core="sap.ui.core"
    xmlns:table="sap.ui.table">
    <table:Table
        id="lostItemsListCustomerTable"
        selectionMode="None"
        ariaLabelledBy="title"
        enableBusyIndicator="true"
        visibleRowCountMode="Auto">
        <table:extension>
            <OverflowToolbar style="Clear">
                <Title
                    id="lostItemsListCustomerTableTitle"
                    text="{path: '$count'} {i18n>Dash.StockListTableTitle}" />
                <ToolbarSpacer />
                <Button
                    icon="sap-icon://excel-attachment"
                    tooltip="{i18n>Dash.ExcelExport}"
                    press="onLostItemsListCustomerExportPress" />
            </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="KUN_KUNNR"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.CustomerNumber}"
                    wrapping="true"
                    wrappingType="Hyphenated" />
                <table:template>
                    <Text
                        text="{
                            path: 'KUN_KUNNR',
                            targetType: 'any',
                            formatter: '.formatter.lTrimZeros'
                        }"
                        tooltip="{KUN_KUNNR}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="KUNDE"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.Customer}"
                    wrapping="true"
                    wrappingType="Hyphenated" />
                <table:template>
                    <Text
                        text="{KUNDE}"
                        tooltip="{KUNDE}"
                        wrapping="false" />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="WEM_KUNWE"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.GoodsRecipientId}"
                    wrapping="true"
                    wrappingType="Hyphenated" />
                <table:template>
                    <Text
                        text="{
                            path: 'WEM_KUNWE',
                            targetType: 'any',
                            formatter: '.formatter.lTrimZeros'
                        }"
                        tooltip="{WEM_KUNWE}"
                        wrapping="false"
                    />
                </table:template>
            </table:Column>
            <table:Column
                sortProperty="WARENEMPFAENGER"
                autoResizable="true">
                <Label
                    text="{i18n>Dash.GoodsRecipient}"
                    wrapping="true"
                    wrappingType="Hyphenated" />
                <table:template>
                    <Text
                        text="{WARENEMPFAENGER}"
                        tooltip="{WARENEMPFAENGER}"
                        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>