<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

  <module name="stock" package="com.axelor.apps.stock.db"/>

  <entity name="StockLocationLine" lang="java">
  
  	<many-to-one name="stockLocation" ref="com.axelor.apps.stock.db.StockLocation" title="Stock location" readonly="true"/>
  	
	<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Product" readonly="true"/>
	<many-to-one name="unit" ref="com.axelor.apps.base.db.Unit" title="Unit"/>
	<decimal name="currentQty" title="Current Qty" readonly="true"/>
	<decimal name="futureQty" title="Future Qty" readonly="true"/>
	<decimal name="avgPrice" precision="20" scale="10" readonly="true" title="Average Price"/>
	<boolean name="isAvgPriceChanged" transient="true"/>
	<date name="lastFutureStockMoveDate" title="Last Future Stock Move" readonly="true"/>
	
    <string name="rack" title="Rack"/>
	<many-to-one name="trackingNumber" ref="com.axelor.apps.stock.db.TrackingNumber" title="Tracking Nbr" readonly="true"/>
	<many-to-one name="detailsStockLocation" ref="com.axelor.apps.stock.db.StockLocation" title="Stock location details" readonly="true"/>
	<many-to-one name="internalDetailsStockLocation" ref="com.axelor.apps.stock.db.StockLocation" title="Internal stock location details" readonly="true"/>

	<decimal name="lastInventoryRealQty"/>
	<datetime name="lastInventoryDateT" tz="true" title="Last inventory date"/>
	
	<integer name="conformitySelect" title="Conformity" selection="stock.move.line.conformity.select"/>
	<!-- QA/QC for the commercial liberation -->
	<boolean name="checkToRelease" title="Check to release" default="false"/>

	<!-- QA/QC -->
	<boolean name="isConformTag" title="Conformity Tag" />

	<boolean name="analysisFolderValidated" title="Analysis folder validated" />
	
	<many-to-one name="internalTrackingNumber" ref="com.axelor.apps.stock.db.InternalTrackingNumber" title="Internal tracking Nbr" readonly="true"/>

	<track>
		<field name="conformitySelect"/>
		<field name="isConformTag"/>
		<field name="checkToRelease"/>
		<field name="analysisFolderValidated"/>
	</track>


  </entity>
</domain-models>
