<?xml version="1.0" encoding="UTF-8"?>
<csv-inputs xmlns="http://axelor.com/xml/ns/data-import"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/data-import http://axelor.com/xml/ns/data-import/data-import_5.2.xsd">
	
	<input file="stock_stock_location.csv" separator=";" type="com.axelor.apps.stock.db.StockLocation" search="self.importId = :importId" />
	
	<input file="stock_stockRules.csv" separator=";" type="com.axelor.apps.stock.db.StockRules"/>

	<input file="base_sequence.csv" separator=";" type="com.axelor.apps.base.db.Sequence" search="self.importId = :importId" call="com.axelor.csv.script.SequenceScript:computeFullname"/>

	<input file="stock_trackingNumberConfig.csv" separator=";" type="com.axelor.apps.stock.db.TrackingNumberConfiguration" search="self.importId = :importId" call="com.axelor.csv.script.ImportTrackingNumberConfig:computeFullName"/>

	<input file="base_product.csv" separator=";" type="com.axelor.apps.base.db.Product" update="true" search="self.importId = :importId"/>
	
	<input file="stock_inventory.csv" separator=";" type="com.axelor.apps.stock.db.Inventory" call="com.axelor.csv.script.ImportInventory:importInventory">
		<bind to="inventorySeq" eval="call:com.axelor.apps.base.service.administration.SequenceService:getSequenceNumber(com.axelor.apps.base.db.repo.SequenceRepository.INVENTORY)" />
	    <bind to="statusSelect" eval="3" />
	    <bind to="company" search="self.id = 1" update="false" />
		<bind column="plannedStartDateT" to="plannedStartDateT" eval="call:com.axelor.csv.script.ImportDateTime:importDate(plannedStartDateT)"/>
	</input>
	
	<input file="stock_stockConfig.csv" separator=";" type="com.axelor.apps.stock.db.StockConfig" search="self.importId = :importId" />
	
	<input file="stock_inventoryLine.csv" separator=";" type="com.axelor.apps.stock.db.InventoryLine" call="com.axelor.csv.script.ImportInventoryLine:importInventoryLine"/>
	
	<input file="stock_inventory.csv" separator=";" type="com.axelor.apps.stock.db.Inventory" search="self.importId = :importId" call="com.axelor.csv.script.ImportInventory:validateInventory">
		<bind column="plannedStartDateT" to="plannedStartDateT" eval="call:com.axelor.csv.script.ImportDateTime:importDate(plannedStartDateT)"/>
	</input>

	<input file="stock_customsCodeNomenclature.csv" separator=";"
		type="com.axelor.apps.stock.db.CustomsCodeNomenclature">
		<bind to="parentCustomsCode" search="self.code = :parentCode" if="parentCode" />
	</input>
	
	<input file="stock_incoterm.csv" separator=";" type="com.axelor.apps.stock.db.Incoterm">
		<bind to="fullname" eval="code+' - '+name"/>
	</input>

	<input file="base_partner.csv" separator=";" type="com.axelor.apps.base.db.Partner" search="self.importId = :importId">
		<bind to="partnerSeq" eval="call:com.axelor.apps.base.service.administration.SequenceService:getSequenceNumber(com.axelor.apps.base.db.repo.SequenceRepository.PARTNER)" />
		<bind to="isCarrier" eval="true"/>
		<bind to="language" search="self.code = :languageCode"/>
	</input>
  
    <input file="stock_shipmentMode.csv" separator=";" type="com.axelor.apps.stock.db.ShipmentMode" search="self.importId = :importId"/>

    <input file="stock_freightCarrierMode.csv" separator=";" type="com.axelor.apps.stock.db.FreightCarrierMode" search="self.importId = :importId"/>
    
    <input file="base_template.csv" separator=";" type="com.axelor.apps.message.db.Template" search="self.name = :name" >
		<bind to="language" search="self.code = :languageCode"/>
	</input>
	
</csv-inputs>