﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>

    <add key="ApplicationTitle" value="LS Retail Mobile Inventory" />
    <add key="Terminal" value="HT002"/>
    <add key="Store" value="3001"/>
    <!-- LogLevel (logs to logs\logfile.txt). level 1=trace, 2=errors only -->
    <add key="LogLevel" value="100"/>

    <!-- Back office settigs, for connection to NAV web service -->

    <add key="BOWebServiceURL" value="http://10.50.82.30:7047/DynamicsNAV/WS/4601_Køge/Codeunit/RetailWebServices"/>

    <add key="BOWebServiceTimout" value="120"/>
    <add key="BOWebServiceUserName" value="Mobiluser"/>
    <add key="BOWebServiceDomain" value="eghelsam"/>
    <add key="BOWebServicePassword" value="QsrB8HGnRhcUf9/pLwV/Iu8OZvVAhd2NUYZHE4dQ8hA="/>
    <!-- Encoding, usually utf-8 but chinese uses GB18030 -->
    <add key="BOWebServiceEncoding" value="iso-8859-1"/>

    <!-- Keep Proxy values blank if not used -->
    <add key="Proxy.Server" value=""/>
    <add key="Proxy.Port" value=""/>
    <add key="Proxy.User" value=""/>
    <add key="Proxy.Password" value=""/>
    <add key="Proxy.Domain" value=""/>
    
    <!-- AllowDecimalInQty true/false, always allows the use of decimals in qty (, or . depends on culture used) -->
    <add key="AllowDecimalInQty" value="false"/>
    
    <!-- UOM.Worksheet. UOM used in all worksheets 
		UseMask					(UOM defined in Mask is used - default)
		UseBarcode				(UOM from barcode table is used)
		UseBarcodeThenMask		(if uom not found in barcode table then it uses masks)
    -->
    <add key="UOM.Worksheet" value="UseMask"/>
    
    <!-- UOM.Document. UOM used in all Documents 
		UseBarcode					(UOM from barcode table is used)
		UseBarcodeThenItemBaseUOM 	(if uom not found in barcode table then it uses BaseUOM from Item table - default)
		UseBarcodeThenItemPurchaseUOM
		UseBarcodeThenItemSalesUOM
		UseItemBaseUOM				(BaseUOM from Item table is used)
		UseItemPurchaseUOM			(PurchaseUOM from Item table is used)
		UseItemSalesUOM				(SalesUOM from Item table is used)
    -->
    <add key="UOM.Document" value="UseBarcodeThenItemPurchaseUOM"/>

    <!-- Barcode.Mask.Prefix.StripCode  Comma delimited list of prefix-N where only the first N digits are used to look up the item in local db BarcodeTable. -->
    <!--   Ex. value="23-7,25-7"  then item lookup for barcode "231234500110C" would be where the first 7 digits in BarcodeTable that match "2312345" -->
    <!--   Used for weighted items, price in barcode etc where whole barcode can not be used to look up the item -->
    <!--   Set value to empty string to disable this feature.  -->
    <add key="Barcode.Mask.Prefix.StripCode" value="23-7,25-7"/>
    <!-- ItemSearch.ShowItemNo, true shows the item no, otherwise only item description is shown -->
    <add key="ItemSearch.ShowItemNo" value="false"/>

    <!-- Manually indicate whether the target device has a VGA screen -->
    <add key="ScreenResolution.VGA" value="true"/>
    <!-- Change the width of the scroolbar, integers only  -->
    <add key="Screen.ScrollbarWidth" value="15"/>
    
    <!-- CheckConnection.Timeout is the number of seconds before connection timing out to web service -->
    <add key="CheckConnection.Timeout" value="10"/>
    <!-- CheckConnectionSleep is the number of seconds between checking connection to web service. 0= no connection check done. -->
    <add key="CheckConnection.Sleep" value="30"/>
    <!-- CheckConnection.LogError (true/false). Connection errors can fill up logtable. Set to false so error is not logged -->
    <add key="CheckConnection.LogError" value="false"/>
    <!-- DatabaseFile can also be "\Storage Card\Data\MobileInventory.db3"  "Data\MobileInventory.db3"-->
    <add key="DatabaseFile" value="Data\MobileInventory.db3" />
    <!-- MasterData.DropCreateIndex true/false. set to "true" drops indexes before getting master data from NAV." -->
    <!-- then creates the indexes again. May get better performance. " -->
    <add key="MasterData.DropCreateIndex" value="false" />
    
    <add key="ImageFolder" value="Img" />

    <!-- repositories used, do not modify -->
    <add key="Repository-File" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.dll" />
    <add key="RepositoryAgent" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Database.RepositoryAgent" />
    <add key="ItemRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Items.ItemRepository" />
    <add key="CustomerRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Customers.CustomerRepository" />
    <add key="LocationRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Locations.LocationRepository" />
    <add key="MaskRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Masks.MaskRepository" />
    <add key="JournalLineRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Masks.JournalLineRepository" />
    <add key="CountingAreaRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Masks.CountingAreaRepository" />
    <add key="TerminalRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Terminals.TerminalRepository" />
    <add key="MenuRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Menus.MenuRepository" />
    <add key="DataImportRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.DataImport.DataImportRepository" />
    <add key="TransactionRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Transactions.TransactionRepository" />
    <add key="LogRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Logger.LogRepository" />
    <add key="MaintenanceRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Database.MaintenanceRepository" />
    <add key="DocumentRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.Documents.DocumentRepository" />
    <add key="DataSyncRepository" value="LSRetail.Mobile.Inventory.Infrastructure.Data.Sqlite.DataSyncing.DataSyncRepository" />
    <!-- repositories used, do not modify -->

    <add key="BOConnection-File" value="LSRetail.Mobile.Inventory.Infrastructure.BOConnection.NAV.dll" />
    <add key="BOConnection" value="LSRetail.Mobile.Inventory.Infrastructure.BOConnection.NAV.NAVConnection" />
  </appSettings>
</configuration>
