<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
	<config condition="bcpg:rawMaterial" evaluator="node-type" replace="false">
		<forms>
			<form>
				<field-visibility>
					<!--mainInfo -->
					<show force="false" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="false" id="bcpg:productHierarchy1" />
					<show force="false" id="bcpg:productHierarchy2" />
					<show force="false" id="bcpg:legalName" />
					<show force="false" id="bcpg:productComments" />
					<show force="true" id="cm:description" />
					<show force="true" id="bcpg:packagingDescription" />
					<show force="false" id="bcpg:productState" />
					<show force="false" id="bcpg:code" />
					<show force="true" id="bcpg:erpCode" />
					<show force="false" id="bcpg:casNumber" />
					<show force="false" id="bcpg:ecNumber" />
					<show force="false" id="bcpg:ceNumber" />
					<show force="false" id="bcpg:fdaNumber" />
					<show force="false" id="bcpg:femaNumber" />
					<show force="false" id="bcpg:flNumber" />
					<show force="false" id="bcpg:eanCode" />
					<show force="true" id="bcpg:suppliers" />
					<show force="true" id="bcpg:supplierPlants" />
					<show force="true" id="bcpg:supplierRefCode" />
					<show force="true" id="bcpg:plants" />
					<show force="true" id="bcpg:productGeoOrigin" />
					<show force="true" id="bcpg:entityTplRef" />
					<show force="false" id="bcpg:parentEntityRef" />
					<show force="false" id="bcpg:linkedSearchAssociation" />
					
					<show force="false" id="pjt:projectScore" />
					
					<!--consumer -->
					<show force="false" id="bcpg:productUnit" />
					<show force="true" id="bcpg:netWeight" />
					<show force="false" id="bcpg:productDensity" />
					<show force="true" id="bcpg:servingSizeUnit" />
					<show force="false" id="bcpg:componentLossPerc" />
					<show force="false" id="bcpg:reconstitutionRate" />
					<show force="false" id="bcpg:reconstitutionPriority" />
					<show force="false" id="bcpg:diluentRef" />
					<show force="false" id="bcpg:targetReconstitutionRef" />
					<show force="false" id="bcpg:evaporatedRate" />
					<show force="false" id="bcpg:meatType" />
					<show force="true" id="bcpg:ingTypeV2" />
					<show force="true" id="bcpg:ingCEECode" />
					<show force="true" id="bcpg:useByDate" />
					<show force="true" id="bcpg:bestBeforeDate" />
					<show force="true" id="bcpg:periodAfterOpening" />
					<show force="true" id="bcpg:contractDate" />
					<show force="true" id="bcpg:storageConditionsRef" />
					<show force="true" id="bcpg:precautionOfUseRef" />
					<show force="true" id="bcpg:preparationTips" />
					<show force="false" id="bcpg:productMicrobioCriteriaRef" />
					<show force="true" id="bcpg:certificateDate" />
					
					<!--formulation -->
					<show force="true" id="bcpg:productSpecifications" />
					
					<!--gs1 -->
					<show force="false" id="gs1:cheeseMaturationPeriodDescription" />
					<show force="false" id="gs1:cheeseMaturationProcessContainerTypeCode" />
					<show force="false" id="gs1:fatPercentageInDryMatter" />
					<show force="false" id="gs1:isRindEdible" />
					<show force="false" id="gs1:rennetTypeCode" />
					<show force="false" id="gs1:ripeningTimePeriod" />
					<show force="false" id="gs1:surfaceOfCheeseAtEndOfRipeningCode" />

					<show force="false" id="gs1:percentageOfAlcoholByVolume" />
					<show force="false" id="gs1:percentageOfAlcoholByVolumeMeasurementPrecisionCode" />
					<show force="false" id="gs1:alcoholProof" />
					<show force="false" id="gs1:alcoholUnits" />
					<show force="false" id="gs1:originOfWineCode" />
					<show force="false" id="gs1:alcoholicBeverageSubregion" />
					<show force="false" id="gs1:isTradeItemAQualityVintageAlcoholProduct" />
					<show force="false" id="gs1:vintage" />
					<show force="false" id="gs1:alcoholBeverageAge" />
					<show force="false" id="gs1:vintner" />
					<show force="false" id="gs1:degreeOfOriginalWort" />
					<show force="false" id="gs1:alcoholicBeverageSugarContent" />
					<show force="false" id="gs1:bitternessOfBeerMeasurement" />
					<show force="false" id="gs1:isCaskStrength" />
					<show force="false" id="gs1:alcoholicBeverageColourCode" />
					<show force="false" id="gs1:sweetnessLevelOfAlcoholicBeverageCode" />
					<show force="false" id="gs1:primaryAddedFlavouringCode" />
					<show force="false" id="gs1:secondaryAddedFlavouringCode" />
					<show force="false" id="gs1:alcoholicPermissionLevel" />
					<show force="false" id="gs1:alcoholBeverageContainerRef" />
					<show force="false" id="gs1:alcoholBeverageTypeCode" />
					<show force="false" id="gs1:beerStyleCode" />
					<show force="false" id="gs1:alcoholBeverageFilteringMethodTypeCode" />
					<show force="false" id="gs1:alcoholBeverageDistilledFromCode" />
					<show force="false" id="gs1:alcoholBeverageProductionMethodTypeCode" />
					
					<!--pallet -->
					<show force="false" id="pack:palletProductsPerBox" />
					<show force="false" id="pack:palletLayers" />
					<show force="false" id="pack:palletBoxesPerLayer" />
					<show force="false" id="pack:palletBoxesPerLastLayer" />
					<show force="false" id="pack:palletBoxesPerPallet" />
					<show force="false" id="pack:palletHeight" />
					<show force="false" id="pack:palletNumberOnGround" />
					<show force="false" id="pack:palletStackingMaxWeight" />
					
					<!--tare -->
					<show force="false" id="pack:tare" />
					<show force="false" id="pack:tareUnit" />
					
					<!--score -->
					<show for-mode="view" force="false" id="bcpg:nutrientProfilingScore" />
					<show for-mode="view" force="false" id="bcpg:nutrientProfilingDetails" />
					<show force="false" id="bcpg:nutrientProfileCategory" />
					<show force="false" id="bcpg:nutrientProfileVersion" />
					
					<!--security -->
					<show force="false" id="ghs:sdsStandardCode" />
					<show force="false" id="ghs:sdsSheetNumber" />
					<show force="false" id="ghs:sdsSheetEffectiveDate" />
					<show force="false" id="ghs:sdsSignalWord" />
					<show force="false" id="ghs:sdsPictograms" />
					<show force="false" id="ghs:sdsHazardStatements" />
					<show force="false" id="ghs:sdsPrecautionaryStatements" />
					<show force="false" id="ghs:sdsPersonalProtections" />
					<show force="false" id="ghs:sdsSafetyInstructions" />
					<show force="false" id="ghs:sdsOnuCode" />
					<show force="false" id="ghs:sdsClassCode" />
					<show force="false" id="ghs:sdsPackagingGroupCode" />
					
					<!--securityRef -->
					<show force="false" id="sec:securityRef" />
					
					<!--category -->
					<show force="false" id="cm:taggable" />
					<show force="false" id="cm:categories" />
					
					<!--audit -->
					<show for-mode="view" force="false" id="cm:creator"/>
					<show for-mode="view" force="false" id="cm:created"/>
					<show for-mode="view" force="false" id="cm:modifier"/>
					<show for-mode="view" force="false" id="cm:modified"/>
					<show for-mode="view" force="false" id="bcpg:formulatedDate"/>
					
					<!--effectivity -->
					<show for-mode="view" force="false" id="bcpg:startEffectivity"/>
					<show for-mode="view" force="false" id="bcpg:endEffectivity"/>
					
					<!--version -->
					<show force="false" id="bcpg:autoMergeDate" />
					<show force="false" id="bcpg:autoMergeTo" />
					<show force="false" id="bcpg:autoMergeVersionType" />
					<show force="false" id="bcpg:autoMergeComments" />
					<show force="false" id="bcpg:autoMergeImpactWUsed" />
					
					<!--template -->
					<show id="bcpg:entityTplEnabled" force="false" />
					<show id="bcpg:entityTplIsDefault" force="false" />
					<show id="bcpg:entityTplScript" force="false" />
					
					<!--regulatory -->
					<show id="bcpg:regulatoryCountries" force="false" />
					<show id="bcpg:regulatoryUsageRef" force="false" />
					<show id="bcpg:regulatoryMode" force="false" />
					<show id="bcpg:regulatoryRecipeId" force="false" />
					<show id="bcpg:regulatoryResult" force="false" />
					<show id="bcpg:regulatoryFormulatedDate" force="false" />
					<show id="bcpg:regulatoryValidationDate" force="false" />
					
					<!--workflow validation -->
					<show id="bcpgwf:pvValidationDate" for-mode="view" />
					<show id="bcpgwf:pvRDApprovalActor" for-mode="view" />
					<show id="bcpgwf:pvPackagingApprovalActor" for-mode="view" />
					<show id="bcpgwf:pvQualityApprovalActor" for-mode="view" />
					<show id="bcpgwf:pvProductionApprovalActor" for-mode="view" />
					<show id="bcpgwf:pvCallerActor" for-mode="view" />
					<show id="bcpgwf:pvCaller2Actor" for-mode="view" />
				</field-visibility>
				<appearance>
					<set id="template" appearance="bordered-panel" label-id="becpg.forms.set.template.label" />
					<field id="bcpg:entityTplEnabled" set="template" />
					<field id="bcpg:entityTplIsDefault" set="template" />
					<field id="bcpg:entityTplScript" set="template" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/association.ftl">
							<control-param name="startLocation">{doclib}</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
					<field id="cm:title" label-id="becpg.forms.field.tradeName" description-id="becpg.forms.field.tradeName" mandatory="false"
						read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field help-id="becpg.forms.help.productHierarchy1" id="bcpg:productHierarchy1" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productHierarchy2" id="bcpg:productHierarchy2" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
							<control-param name="parent">bcpg_productHierarchy1
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.legalName" id="bcpg:legalName" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productComments" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="cm:description" mandatory="false" read-only="false" set="mainInfo">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>
					<field id="bcpg:packagingDescription" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="bcpg:productState" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:code" mandatory="false" read-only="true" set="mainInfo" />
					<field id="bcpg:erpCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:casNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:ecNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:ceNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:fdaNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:femaNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:flNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" set="mainInfo">
						<constraint-handlers>
							<constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN" />
						</constraint-handlers>
					</field>
					<field id="bcpg:suppliers" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity
							</control-param>
							<control-param name="parentAssoc">bcpg_suppliers</control-param>
						</control>
					</field>
					<field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:plants" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:entityTplRef" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
							</control-param>
							<control-param name="excludeSources">true</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
						</control>
					</field>
					
					<field id="bcpg:linkedSearchAssociation"  mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:ing,bcpg:rawMaterial
                            </control-param>
                        </control>
                    </field>
					<field id="pjt:projectScore" mandatory="false" read-only="false" set="mainInfo" />
					<set appearance="bordered-panel" id="formulation" label-id="becpg.forms.set.formulation.label"
						template="/org/alfresco/components/form/3-column-set.ftl" />
					<field help-id="becpg.forms.help.productSpecifications" id="bcpg:productSpecifications" mandatory="false" read-only="false"
						set="formulation">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
							<control-param name="style">width:200px</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="consumer" label-id="becpg.forms.set.consumer.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:productUnit" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,m,m2,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="bcpg:netWeight" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<field id="bcpg:productDensity" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:servingSizeUnit" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:componentLossPerc" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionRate" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionPriority" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:diluentRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:targetReconstitutionRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:evaporatedRate" mandatory="false" read-only="false" set="consumer" />

					<field id="bcpg:meatType" mandatory="false" read-only="false" set="consumer" />

					<set appearance="bordered-panel" id="cheese" label-id="becpg.forms.set.cheese.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />

					<field id="gs1:cheeseMaturationPeriodDescription" mandatory="false" read-only="false" set="cheese">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
							<control-param name="maxLength">70</control-param>
						</control>
					</field>
					<field id="gs1:cheeseMaturationProcessContainerTypeCode" mandatory="false" read-only="false" set="cheese" />
					<field id="gs1:fatPercentageInDryMatter" mandatory="false" read-only="false" set="cheese" />
					<field id="gs1:isRindEdible" mandatory="false" read-only="false" set="cheese">
						<control template="/org/alfresco/components/form/controls/boolean.ftl" />
					</field>
					<field id="gs1:rennetTypeCode" mandatory="false" read-only="false" set="cheese" />
					<field id="gs1:ripeningTimePeriod" mandatory="false" read-only="false" set="cheese">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field id="gs1:surfaceOfCheeseAtEndOfRipeningCode" mandatory="false" read-only="false" set="cheese" />


					<set appearance="bordered-panel" id="alcohol" label-id="becpg.forms.set.alcohol.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="gs1:percentageOfAlcoholByVolume" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:percentageOfAlcoholByVolumeMeasurementPrecisionCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholicPermissionLevel" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholicBeverageSubregion" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:vintner" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:isTradeItemAQualityVintageAlcoholProduct" mandatory="false" read-only="false" set="alcohol">
						<control template="/org/alfresco/components/form/controls/boolean.ftl" />
						<constraint-handlers>
							<constraint event="change@[{'prop':'prop_gs1_vintage', 'condition' : '|false'}]" type="MANDATORY"
								validation-handler="beCPG.forms.validation.hideIf" />
						</constraint-handlers>
					</field>
					<field id="gs1:vintage" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:degreeOfOriginalWort" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholicBeverageSugarContent" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholProof" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholUnits" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholicBeverageColourCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:originOfWineCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:sweetnessLevelOfAlcoholicBeverageCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageAge" mandatory="false" read-only="false" set="alcohol">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mo</control-param>
						</control>
					</field>
					<field id="gs1:bitternessOfBeerMeasurement" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:isCaskStrength" mandatory="false" read-only="false" set="alcohol">
						<control template="/org/alfresco/components/form/controls/boolean.ftl" />
					</field>
					<field id="gs1:beerStyleCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageFilteringMethodTypeCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageProductionMethodTypeCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageDistilledFromCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:primaryAddedFlavouringCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:secondaryAddedFlavouringCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageTypeCode" mandatory="false" read-only="false" set="alcohol" />
					<field id="gs1:alcoholBeverageContainerRef" mandatory="false" read-only="false" set="alcohol">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl"></control>
					</field>

					<set appearance="bordered-panel" id="regulatory" label-id="becpg.forms.set.regulatory.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:regulatoryCountries" set="regulatory">
						<control
							template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="bcpg:regulatoryUsageRef" set="regulatory">
						<control
							template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="bcpg:regulatoryMode" set="regulatory" />
					<field id="bcpg:regulatoryRecipeId" read-only="true"
						set="regulatory" />
					<field id="bcpg:regulatoryResult" read-only="true"
						set="regulatory" />
					<field id="bcpg:regulatoryFormulatedDate" read-only="true"
						set="regulatory" />
					<field id="bcpg:regulatoryValidationDate" mandatory="false"
						read-only="false" set="regulatory">
						<control
							template="/org/alfresco/components/form/controls/date.ftl">
							<control-param name="showTime">false</control-param>
						</control>
					</field>

					<field id="bcpg:ingTypeV2" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
							</control-param>
						</control>
					</field>
					<field id="bcpg:ingCEECode" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.useByDate" id="bcpg:useByDate" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.bestBeforeDate" id="bcpg:bestBeforeDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mo</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.periodAfterOpening" id="bcpg:periodAfterOpening" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.contractDate" id="bcpg:contractDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.storageConditionsRef" id="bcpg:storageConditionsRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.precautionOfUseRef" id="bcpg:precautionOfUseRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.preparationTips" id="bcpg:preparationTips" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productMicrobioCriteriaRef" id="bcpg:productMicrobioCriteriaRef" mandatory="false" read-only="false"
						set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
						</control>
					</field>
					<field id="bcpg:certificateDate" mandatory="false" read-only="false" set="consumer" />
					<set appearance="bordered-panel" id="pallet" label-id="becpg.forms.set.pallet.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:palletProductsPerBox" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletLayers" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLastLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerPallet" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletHeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mm</control-param>
						</control>
					</field>
					<field id="pack:palletNumberOnGround" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletStackingMaxWeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="tare" label-id="becpg.forms.set.tare.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:tare" mandatory="false" read-only="false" set="tare" />
					<field id="pack:tareUnit" mandatory="false" read-only="false" set="tare" />
					<set appearance="bordered-panel" id="score" label-id="becpg.forms.set.nutrient.score.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:nutrientProfilingScore" mandatory="false" read-only="false" set="score" />
					<field id="bcpg:nutrientProfilingDetails" mandatory="false" read-only="false" set="score">
						<control template="/org/alfresco/components/form/controls/nutrient-class.ftl" />
					</field>
					<field id="bcpg:nutrientProfileCategory" mandatory="false" read-only="false" set="score">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
					<field id="bcpg:nutrientProfileVersion" mandatory="false" read-only="false" set="score">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
					<set appearance="bordered-panel" id="security" label-id="becpg.forms.set.security.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="ghs:sdsStandardCode" mandatory="false" read-only="false" set="security" />
					<field id="ghs:sdsSheetNumber" mandatory="false" read-only="false" set="security" />
					<field id="ghs:sdsSheetEffectiveDate" mandatory="false" read-only="false" set="security" />
					<field id="ghs:sdsSignalWord" mandatory="false" read-only="false" set="security" />
					<field id="ghs:sdsPictograms" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsHazardStatements" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPrecautionaryStatements" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPersonalProtections" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsSafetyInstructions" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="ghs:sdsOnuCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsClassCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPackagingGroupCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
					<field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
							</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="categories" label-id="becpg.forms.set.category.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:taggable" mandatory="false" read-only="false" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories" mandatory="false" read-only="false" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
					
					<set id="productValidation" appearance="bordered-panel" label-id="becpg.forms.set.validation.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpgwf:pvValidationDate" set="productValidation">
						<control template="/org/alfresco/components/form/controls/date.ftl">
							<control-param name="showTime">false</control-param>
						</control>
					</field>
					<field id="bcpgwf:pvRDApprovalActor" set="productValidation" />
					<field id="bcpgwf:pvPackagingApprovalActor" set="productValidation" />
					<field id="bcpgwf:pvQualityApprovalActor" set="productValidation" />
					<field id="bcpgwf:pvProductionApprovalActor" set="productValidation" />
					<field id="bcpgwf:pvCallerActor" set="productValidation" />
					<field id="bcpgwf:pvCaller2Actor" set="productValidation" />
					
					<set appearance="bordered-panel" id="audit" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:creator" mandatory="false" read-only="false" set="audit" />
					<field id="cm:created" mandatory="false" read-only="false" set="audit" />
					<field id="cm:modifier" mandatory="false" read-only="false" set="audit" />
					<field id="cm:modified" mandatory="false" read-only="false" set="audit" />
					<field id="bcpg:formulatedDate" mandatory="false" read-only="false" set="audit" />
					
					<set appearance="bordered-panel" id="effectivity" label-id="becpg.forms.set.effectivity.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:startEffectivity" mandatory="false" read-only="false" set="effectivity">
						<control template="/org/alfresco/components/form/controls/date.ftl">
							<control-param name="showTime">false</control-param>
						</control>
					</field>
					<field id="bcpg:endEffectivity" mandatory="false" read-only="false" set="effectivity">
						<control template="/org/alfresco/components/form/controls/date.ftl">
							<control-param name="showTime">false</control-param>
						</control>
					</field>
					
					<set appearance="bordered-panel" id="branch" label-id="becpg.forms.set.branch.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:autoMergeDate" mandatory="false" read-only="false" set="branch" />
					<field id="bcpg:autoMergeTo" mandatory="false" read-only="false" set="branch">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/branches</control-param>
							<control-param name="urlParamsToPass">itemId</control-param>
						</control>
					</field>
					<field id="bcpg:autoMergeVersionType" mandatory="false" read-only="false" set="branch" />
					<field id="bcpg:autoMergeComments" mandatory="false" read-only="false" set="branch">
						<control template="/org/alfresco/components/form/controls/textarea.ftl" />
					</field>
					<field id="bcpg:autoMergeImpactWUsed" mandatory="false" read-only="false" set="branch" />
					
				
				</appearance>
			</form>
			<form id="supplier">
				<field-visibility>
					<show force="false" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="false" id="bcpg:legalName" />
					<show force="false" id="bcpg:productComments" />
					<show force="true" id="cm:description" />
					<show force="true" id="bcpg:packagingDescription" />
					<show force="false" id="bcpg:eanCode" />
					<show force="true" id="bcpg:supplierPlants" />
					<show force="true" id="bcpg:supplierRefCode" />
					<show force="true" id="bcpg:productGeoOrigin" />
					<show force="false" id="bcpg:productDensity" />
					<show force="true" id="bcpg:ingTypeV2" />
					<show force="true" id="bcpg:ingCEECode" />
					<show force="true" id="bcpg:useByDate" />
					<show force="true" id="bcpg:bestBeforeDate" />
					<show force="true" id="bcpg:periodAfterOpening" />
					<show force="true" id="bcpg:contractDate" />
					<show force="true" id="bcpg:storageConditionsRef" />
					<show force="true" id="bcpg:precautionOfUseRef" />
					<show force="true" id="bcpg:preparationTips" />
					<show force="true" id="bcpg:certificateDate" />
					<show force="false" id="pack:palletProductsPerBox" />
					<show force="false" id="pack:palletLayers" />
					<show force="false" id="pack:palletBoxesPerLayer" />
					<show force="false" id="pack:palletBoxesPerLastLayer" />
					<show force="false" id="pack:palletBoxesPerPallet" />
					<show force="false" id="pack:palletHeight" />
					<show force="false" id="pack:palletNumberOnGround" />
					<show force="false" id="pack:palletStackingMaxWeight" />
					<show force="false" id="pack:tare" />
					<show force="false" id="pack:tareUnit" />
				</field-visibility>
				<appearance>
					<set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
					<field id="cm:title" label-id="becpg.forms.field.tradeName" description-id="becpg.forms.field.tradeName" mandatory="false"
						read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field help-id="becpg.forms.help.legalName" id="bcpg:legalName" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productComments" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="cm:description" mandatory="false" read-only="false" set="mainInfo">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>
					<field id="bcpg:packagingDescription" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" set="mainInfo">
						<constraint-handlers>
							<constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN" />
						</constraint-handlers>
					</field>
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/supplierPlants</control-param>
						</control>
					</field>
					<field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />
					<set appearance="bordered-panel" id="consumer" label-id="becpg.forms.set.consumer.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:productDensity" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:ingTypeV2" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
							</control-param>
						</control>
					</field>
					<field id="bcpg:ingCEECode" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.useByDate" id="bcpg:useByDate" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.bestBeforeDate" id="bcpg:bestBeforeDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mo</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.periodAfterOpening" id="bcpg:periodAfterOpening" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.contractDate" id="bcpg:contractDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.storageConditionsRef" id="bcpg:storageConditionsRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.precautionOfUseRef" id="bcpg:precautionOfUseRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.preparationTips" id="bcpg:preparationTips" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="bcpg:certificateDate" mandatory="false" read-only="false" set="consumer" />
					<set appearance="bordered-panel" id="pallet" label-id="becpg.forms.set.pallet.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:palletProductsPerBox" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletLayers" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLastLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerPallet" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletHeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mm</control-param>
						</control>
					</field>
					<field id="pack:palletNumberOnGround" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletStackingMaxWeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="tare" label-id="becpg.forms.set.tare.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:tare" mandatory="false" read-only="false" set="tare" />
					<field id="pack:tareUnit" mandatory="false" read-only="false" set="tare" />
				</appearance>
			</form>
			<form id="doclib-simple-metadata">
				<field-visibility>
					<show force="false" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="true" id="cm:description" />
					<show for-mode="edit" force="true" id="cm:taggable" />
					<show force="false" id="cm:categories" />
				</field-visibility>
				<appearance>
					<field id="cm:name" mandatory="false" read-only="false">
						<control>
							<control-param name="maxLength">255</control-param>
						</control>
					</field>
					<field id="cm:title" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field id="cm:description" mandatory="false" read-only="false">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>
					<field id="cm:taggable" mandatory="false" read-only="false">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories" mandatory="false" read-only="false">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
				</appearance>
				<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
			</form>
			<form id="formulation">
				<field-visibility>
					<show force="false" id="cm:name" />
					<show force="false" id="bcpg:legalName" />
					<show force="true" id="bcpg:erpCode" />
					<show force="false" id="bcpg:productUnit" />
					<show force="true" id="bcpg:netWeight" />
					<show force="false" id="bcpg:productDensity" />
					<show force="true" id="bcpg:productSpecifications" />
				</field-visibility>
				<appearance>
					<field id="cm:name" mandatory="false" read-only="false" />
					<field id="bcpg:legalName" mandatory="false" read-only="false" />
					<field id="bcpg:erpCode" mandatory="false" read-only="false" />
					<field id="bcpg:productUnit" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,m,m2,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="bcpg:netWeight" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<field id="bcpg:productDensity" mandatory="false" read-only="false" />
					<field id="bcpg:productSpecifications" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="reports-parameters">
				<field-visibility>
					<show force="true" id="rep:reportLocales" />
					<show force="true" id="rep:reportParameters" />
					<show force="true" id="rep:reportTpls" />
				</field-visibility>
				<appearance>
					<field id="rep:reportLocales" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
					</field>
					<field id="rep:reportParameters" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/checkboxmany.ftl" />
					</field>
					<field id="rep:reportTpls" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/rep:reportTpl?excludeProps=rep%3AreportTplIsSystem%7Ctrue%2Crep%3AreportTplIsDisabled%7Ctrue%2Crep%3AreportTplType%7CExportSearch%2Crep%3AreportTplType%7CCompare%2Crep%3AreportTplType%7CSystem
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="nutList">
				<field-visibility>
					<show for-mode="view" force="true" id="bcpg:nutrientProfilingScore" />
					<show for-mode="view" force="true" id="bcpg:nutrientProfilingDetails" />
					<show force="true" id="bcpg:nutrientProfileCategory" />
					<show force="true" id="bcpg:nutrientProfileVersion" />
				</field-visibility>
				<appearance>
					<field id="bcpg:nutrientProfilingScore" mandatory="false" read-only="false" />
					<field id="bcpg:nutrientProfilingDetails" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/nutrient-class.ftl" />
					</field>
					<field id="bcpg:nutrientProfileCategory" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
					<field id="bcpg:nutrientProfileVersion" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>
	<config condition="bcpg:rawMaterial" evaluator="model-type" replace="false">
		<forms>
			<form id="create">
				<field-visibility>
					<show force="false" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="false" id="bcpg:productHierarchy1" />
					<show force="false" id="bcpg:productHierarchy2" />
					<show force="false" id="bcpg:legalName" />
					<show force="false" id="bcpg:productComments" />
					<show force="true" id="cm:description" />
					<show force="true" id="bcpg:packagingDescription" />
					<show force="true" id="bcpg:entityTplRef" />
					<show force="false" id="bcpg:productState" />
					<show force="false" id="bcpg:code" />
					<show force="true" id="bcpg:erpCode" />
					<show force="false" id="bcpg:eanCode" />
					<show force="true" id="bcpg:suppliers" />
					<show force="true" id="bcpg:supplierPlants" />
					<show force="true" id="bcpg:supplierRefCode" />
					<show force="true" id="bcpg:plants" />
					<show force="true" id="bcpg:productGeoOrigin" />
					<show force="false" id="bcpg:productUnit" />
					<show force="true" id="bcpg:netWeight" />
					<show force="false" id="bcpg:productDensity" />
					<show force="true" id="bcpg:servingSizeUnit" />
					<show force="false" id="bcpg:componentLossPerc" />
					<show force="false" id="bcpg:reconstitutionRate" />
					<show force="false" id="bcpg:reconstitutionPriority" />
					<show force="false" id="bcpg:diluentRef" />
					<show force="false" id="bcpg:targetReconstitutionRef" />
					<show force="false" id="bcpg:evaporatedRate" />

					<show force="true" id="bcpg:productSpecifications" />

					<show force="true" id="bcpg:ingTypeV2" />
					<show force="true" id="bcpg:ingCEECode" />
					<show force="true" id="bcpg:useByDate" />
					<show force="true" id="bcpg:bestBeforeDate" />
					<show force="true" id="bcpg:periodAfterOpening" />
					<show force="true" id="bcpg:contractDate" />
					<show force="true" id="bcpg:storageConditionsRef" />
					<show force="true" id="bcpg:precautionOfUseRef" />
					<show force="true" id="bcpg:preparationTips" />
					<show force="false" id="bcpg:productMicrobioCriteriaRef" />
					<show force="true" id="bcpg:certificateDate" />
					<show force="false" id="cm:taggable" />
					<show force="false" id="cm:categories" />
					<show id="bcpg:regulatoryMode" />
					<show id="bcpg:regulatoryCountries" />
					<show id="bcpg:regulatoryUsageRef" />
				</field-visibility>
				<appearance>
					<set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
					<field id="cm:title" label-id="becpg.forms.field.tradeName" description-id="becpg.forms.field.tradeName" mandatory="false"
						read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field help-id="becpg.forms.help.productHierarchy1" id="bcpg:productHierarchy1" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productHierarchy2" id="bcpg:productHierarchy2" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
							<control-param name="parent">bcpg_productHierarchy1
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.legalName" id="bcpg:legalName" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productComments" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="cm:description" mandatory="false" read-only="false" set="mainInfo">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>
					<field id="bcpg:packagingDescription" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="bcpg:entityTplRef" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="bcpg:productState" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:code" mandatory="false" read-only="true" set="mainInfo" />
					<field id="bcpg:erpCode" mandatory="false" read-only="false" set="mainInfo" />
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" set="mainInfo">
						<constraint-handlers>
							<constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN" />
						</constraint-handlers>
					</field>
					<field id="bcpg:suppliers" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity
							</control-param>
							<control-param name="parentAssoc">bcpg_suppliers</control-param>
						</control>
					</field>
					<field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:plants" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />
					<set appearance="bordered-panel" id="formulation" label-id="becpg.forms.set.formulation.label"
						template="/org/alfresco/components/form/3-column-set.ftl" />
					<field id="bcpg:productSpecifications" mandatory="false" read-only="false" set="formulation">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
							<control-param name="style">width:200px</control-param>
						</control>
					</field>

					<set appearance="bordered-panel" id="regulatory"
						label-id="becpg.forms.set.regulatory.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:regulatoryCountries" set="regulatory">
						<control
							template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="bcpg:regulatoryUsageRef" set="regulatory">
						<control
							template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
					</field>
					<field id="bcpg:regulatoryMode" set="regulatory" />
					
					<set appearance="bordered-panel" id="consumer" label-id="becpg.forms.set.consumer.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:productUnit" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,m,m2,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="bcpg:netWeight" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<field id="bcpg:productDensity" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:servingSizeUnit" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:componentLossPerc" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionRate" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionPriority" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:diluentRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:targetReconstitutionRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:evaporatedRate" mandatory="false" read-only="false" set="consumer" />

					<field id="bcpg:ingTypeV2" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
							</control-param>
						</control>
					</field>
					<field id="bcpg:ingCEECode" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.useByDate" id="bcpg:useByDate" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.bestBeforeDate" id="bcpg:bestBeforeDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mo</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.periodAfterOpening" id="bcpg:periodAfterOpening" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.contractDate" id="bcpg:contractDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.storageConditionsRef" id="bcpg:storageConditionsRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.precautionOfUseRef" id="bcpg:precautionOfUseRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.preparationTips" id="bcpg:preparationTips" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="bcpg:productMicrobioCriteriaRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
						</control>
					</field>
					<field id="bcpg:certificateDate" mandatory="false" read-only="false" set="consumer" />
					<set appearance="bordered-panel" id="categories" label-id="becpg.forms.set.category.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:taggable" mandatory="false" read-only="false" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
							<control-param name="params">aspect=cm:taggable
							</control-param>
							<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
							</control-param>
							<control-param name="createNewItemIcon">tag</control-param>
						</control>
					</field>
					<field id="cm:categories" mandatory="false" read-only="false" set="categories">
						<control>
							<control-param name="compactMode">true</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="formulation">
				<field-visibility>
					<show force="false" id="cm:name" />
					<show force="false" id="bcpg:legalName" />
					<show force="true" id="bcpg:erpCode" />
					<show force="false" id="bcpg:productUnit" />
					<show force="true" id="bcpg:netWeight" />
					<show force="true" id="bcpg:productDensity" />
					<show force="true" id="bcpg:entityTplRef" />
				</field-visibility>
				<appearance>
					<field id="cm:name" mandatory="false" read-only="false" />
					<field id="bcpg:legalName" mandatory="false" read-only="false" />
					<field id="bcpg:erpCode" mandatory="false" read-only="false" />
					<field id="bcpg:productUnit" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,m,m2,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="bcpg:netWeight" mandatory="false" read-only="false" />
					<field id="bcpg:productDensity" mandatory="false" read-only="false" />
					<field id="bcpg:entityTplRef" mandatory="false" read-only="false">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="search">
				<field-visibility>
					<show force="true" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="true" id="cm:description" />
					<show force="true" id="bcpg:legalName" />
					<show force="true" id="bcpg:productHierarchy1" />
					<show force="true" id="bcpg:productState" />
					<show force="false" id="bcpg:code" />
					<show force="true" id="bcpg:erpCode" />
					<show force="true" id="bcpg:certificateDate" />
					<show force="true" id="bcpg:suppliers" />
					<show force="true" id="bcpg:supplierPlants" />
					<show force="true" id="bcpg:supplierRefCode" />
					<show force="true" id="bcpg:plants" />
					<show force="true" id="bcpg:productGeoOrigin" />
					<show force="true" id="bcpg:entityTplRef" />
					<show force="true" id="bcpg:productCollections" />
					<show force="false" id="cm:creator" />
					<show force="false" id="cm:created" />
					<show force="false" id="cm:modifier" />
					<show force="false" id="cm:modified" />
					<show force="true" id="bcpg:advAlVolAnd" />
					<show force="true" id="bcpg:advAlVolNot" />
					<show force="true" id="bcpg:advAlInVolAnd" />
					<show force="true" id="bcpg:advAlInVolNot" />
					<show force="true" id="bcpg:advLclClaimAnd" />
					<show force="true" id="bcpg:advLclClaimNot" />
					<show force="true" id="bcpg:advIlIngAnd" />
					<show force="true" id="bcpg:ingListQtyPerc" />
					<show force="true" id="bcpg:advIlIngNot" />
					<show force="true" id="bcpg:ingListGeoOrigin" />
					<show force="true" id="bcpg:advIlGeoOriginNot" />
					<show force="true" id="bcpg:ingListBioOrigin" />
					<show force="true" id="bcpg:costListCost" />
					<show force="true" id="bcpg:costListValue" />
					<show force="true" id="bcpg:advNlNut1" />
					<show force="true" id="bcpg:advNlValue1" />
					<show force="true" id="bcpg:advNlNut2" />
					<show force="true" id="bcpg:advNlValue2" />
					<show force="true" id="bcpg:advNlNut3" />
					<show force="true" id="bcpg:advNlValue3" />
					<show force="true" id="bcpg:advPclPhysicoChem1" />
					<show force="true" id="bcpg:advPclValue1" />
					<show force="true" id="bcpg:advPclPhysicoChem2" />
					<show force="true" id="bcpg:advPclValue2" />
					<show force="true" id="bcpg:mblMicrobio" />
					<show force="true" id="bcpg:mblValue" />
					<show force="true" id="bcpg:advRespectedProductSpecs" />
					<show force="true" id="bcpg:advNotRespectedProductSpecs" />
					<show force="true" id="bcpg:advLca" />
					<show force="true" id="bcpg:lcaListValue" />
					<show force="true" id="bcpg:advSvhcAnd" />
					<show force="true" id="bcpg:svhcListQtyPerc" />
					<show force="true" id="bcpg:advSvhcNot" />
					<show id="survey:advSearchSurveyQuestion1" force="true" />
					  <show id="survey:advSearchSurveyAnswer1" force="true" />
					  <show id="survey:advSearchResponseCommentType1" force="true" />
					  <show id="survey:advSearchSlDisabledComment1" force="true" />
					  <show id="survey:advSearchSlNumberComment1" force="true" />
					  <show id="survey:advSearchSlDateComment1" force="true" />
					  <show id="survey:advSearchSurveyQuestion2" force="true" />
					  <show id="survey:advSearchSurveyAnswer2" force="true" />
					  <show id="survey:advSearchResponseCommentType2" force="true" />
					  <show id="survey:advSearchSlDisabledComment2" force="true" />
					  <show id="survey:advSearchSlNumberComment2" force="true" />
					  <show id="survey:advSearchSlDateComment2" force="true" />
					  <show id="survey:advSearchSurveyQuestion3" force="true" />
					  <show id="survey:advSearchSurveyAnswer3" force="true" />
					  <show id="survey:advSearchResponseCommentType3" force="true" />
					  <show id="survey:advSearchSlDisabledComment3" force="true" />
					  <show id="survey:advSearchSlNumberComment3" force="true" />
					  <show id="survey:advSearchSlDateComment3" force="true" />
					  <show id="survey:advSearchSurveyQuestion4" force="true" />
					  <show id="survey:advSearchSurveyAnswer4" force="true" />
					  <show id="survey:advSearchResponseCommentType4" force="true" />
					  <show id="survey:advSearchSlDisabledComment4" force="true" />
					  <show id="survey:advSearchSlNumberComment4" force="true" />
					  <show id="survey:advSearchSlDateComment4" force="true" />
          <!--<show force="true" id="pjt:slCriterion"/>
          <show force="true" id="pjt:slScore"/>-->
				</field-visibility>
				<appearance>
					<set appearance="bordered-panel" id="product-criteria" label-id="becpg.forms.set.product-criteria.label" />
					<set id="2-col-product-criteria" parent="product-criteria" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:name" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="cm:title" mandatory="false" label-id="becpg.forms.field.tradeName" read-only="false" set="2-col-product-criteria">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="cm:description" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:legalName" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productHierarchy1" id="bcpg:productHierarchy1" mandatory="false" read-only="false"
						set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
							<control-param name="multiple">true</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:productState" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/selectmany.ftl">
							<control-param name="isSearch">true</control-param>
							<control-param name="forceEditable">true</control-param>
						</control>

					</field>
					<field id="bcpg:entityTplRef" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:code" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:erpCode" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:certificateDate" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/textfield.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:suppliers" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="isSearch">true</control-param>
						</control>

					</field>
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity </control-param>
 							<control-param name="parentAssoc">bcpg_suppliers</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:plants" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:productCollections" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set id="3-col-product-criteria" parent="product-criteria" template="/org/alfresco/components/form/3-column-set.ftl" />
					<set id="1-col-product-criteria" parent="product-criteria" />
					<field id="cm:modified" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
					<field id="cm:modifier" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="cm:created" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control template="/org/alfresco/components/form/controls/daterange.ftl" />
					</field>
					<field id="cm:creator" mandatory="false" read-only="false" set="2-col-product-criteria">
						<control>
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advAlVolNot" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="allergens-claims" label-id="becpg.forms.set.allergens-claims.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advAlVolAnd" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advAlVolNot" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advAlInVolAnd" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advAlInVolNot" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advLclClaimAnd" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advLclClaimNot" mandatory="false" read-only="false" set="allergens-claims">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="ings-criteria" label-id="becpg.forms.set.ings-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advIlIngAnd" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:ingListQtyPerc" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advIlIngNot" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:ingListGeoOrigin" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advIlGeoOriginNot" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:ingListBioOrigin" mandatory="false" read-only="false" set="ings-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="costs-criteria" label-id="becpg.forms.set.costs-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:costListCost" mandatory="false" read-only="false" set="costs-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:costListValue" mandatory="false" read-only="false" set="costs-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="nuts-criteria" label-id="becpg.forms.set.nuts-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advNlNut1" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNlValue1" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNlNut2" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNlValue2" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNlNut3" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNlValue3" mandatory="false" read-only="false" set="nuts-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="physicoChems-criteria" label-id="becpg.forms.set.physicoChems-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advPclPhysicoChem1" mandatory="false" read-only="false" set="physicoChems-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advPclValue1" mandatory="false" read-only="false" set="physicoChems-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advPclPhysicoChem2" mandatory="false" read-only="false" set="physicoChems-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advPclValue2" mandatory="false" read-only="false" set="physicoChems-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="microbio-criteria" label-id="becpg.forms.set.microbio-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:mblMicrobio" mandatory="false" read-only="false" set="microbio-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:mblValue" mandatory="false" read-only="false" set="microbio-criteria">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="product-specifications-criteria" label-id="becpg.forms.set.product-specifications-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advRespectedProductSpecs" mandatory="false" read-only="false" set="product-specifications-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:advNotRespectedProductSpecs" mandatory="false" read-only="false" set="product-specifications-criteria">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="lca" label-id="becpg.forms.set.lca-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advLca" mandatory="false" read-only="false" set="lca">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:lcaListValue" mandatory="false" read-only="false" set="lca">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="svhc" label-id="becpg.forms.set.svhc-criteria.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:advSvhcAnd" mandatory="false" read-only="false" set="svhc">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="bcpg:svhcListQtyPerc" mandatory="false" read-only="false" set="svhc">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
							<control-param name="forceEditable">true</control-param>
						</control>
					</field>
					<field id="bcpg:advSvhcNot" mandatory="false" read-only="false" set="svhc">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="survey" label-id="becpg.forms.set.survey-criteria.label"
						template="/org/alfresco/components/form/2-stackable-column-set.ftl" />
					<field id="survey:advSearchSurveyQuestion1" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyAnswer1" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="parentAssoc">survey_advSearchSurveyQuestion1</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchResponseCommentType1" set="survey">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
							<control-param name="visibleFieldsValues">{
									prop_survey_advSearchSlDisabledComment1: [""],
									prop_survey_advSearchSlNumberComment1: ["number"],
									prop_survey_advSearchSlDateComment1: ["dateTime"]
							}</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlDisabledComment1" mandatory="false" read-only="true" set="survey">
						<control>
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlNumberComment1" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
            				<control-param name="forceEditable">true</control-param>
            				<control-param name="stacked">true</control-param>
            			</control>
					</field>
					<field id="survey:advSearchSlDateComment1" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/daterange.ftl">
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyQuestion2" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyAnswer2" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="parentAssoc">survey_advSearchSurveyQuestion2</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchResponseCommentType2" set="survey">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
							<control-param name="visibleFieldsValues">{
									prop_survey_advSearchSlDisabledComment2: [""],
									prop_survey_advSearchSlNumberComment2: ["number"],
									prop_survey_advSearchSlDateComment2: ["dateTime"]
							}</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlDisabledComment2" mandatory="false" read-only="true" set="survey">
						<control>
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlNumberComment2" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
            				<control-param name="forceEditable">true</control-param>
            				<control-param name="stacked">true</control-param>
            			</control>
					</field>
					<field id="survey:advSearchSlDateComment2" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/daterange.ftl">
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyQuestion3" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyAnswer3" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="parentAssoc">survey_advSearchSurveyQuestion3</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchResponseCommentType3" set="survey">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
							<control-param name="visibleFieldsValues">{
									prop_survey_advSearchSlDisabledComment3: [""],
									prop_survey_advSearchSlNumberComment3: ["number"],
									prop_survey_advSearchSlDateComment3: ["dateTime"]
							}</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlDisabledComment3" mandatory="false" read-only="true" set="survey">
						<control>
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlNumberComment3" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
            				<control-param name="forceEditable">true</control-param>
            				<control-param name="stacked">true</control-param>
            			</control>
					</field>
					<field id="survey:advSearchSlDateComment3" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/daterange.ftl">
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyQuestion4" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSurveyAnswer4" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/survey</control-param>
							<control-param name="parentAssoc">survey_advSearchSurveyQuestion4</control-param>
							<control-param name="forceEditable">true</control-param>
							<control-param name="isSearch">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchResponseCommentType4" set="survey">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
							<control-param name="insertBlank">true</control-param>
							<control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
							<control-param name="visibleFieldsValues">{
									prop_survey_advSearchSlDisabledComment4: [""],
									prop_survey_advSearchSlNumberComment4: ["number"],
									prop_survey_advSearchSlDateComment4: ["dateTime"]
							}</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlDisabledComment4" mandatory="false" read-only="true" set="survey">
						<control>
							<control-param name="stacked">true</control-param>
						</control>
					</field>
					<field id="survey:advSearchSlNumberComment4" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/numberrange.ftl">
            				<control-param name="forceEditable">true</control-param>
            				<control-param name="stacked">true</control-param>
            			</control>
					</field>
					<field id="survey:advSearchSlDateComment4" mandatory="false" read-only="false" set="survey">
						<control template="/org/alfresco/components/form/controls/daterange.ftl">
							<control-param name="stacked">true</control-param>
						</control>
					</field>
		  
          <!--<set appearance="bordered-panel" id="score" label-id="becpg.forms.set.score-criteria.label" template="/org/alfresco/components/form/2-column-set.ftl"/>
          <field id="pjt:slCriterion" mandatory="false" read-only="false" set="score">
            <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
              <control-param name="forceEditable">true</control-param>
              <control-param name="isSearch">true</control-param>
            </control>
          </field>
          <field id="pjt:slScore" mandatory="false" read-only="false" set="score">
            <control template="/org/alfresco/components/form/controls/numberrange.ftl">
              <control-param name="forceEditable">true</control-param>
            </control>
          </field>-->
				</appearance>
			</form>
			<form id="bulk-edit">
				<field-visibility>
					<show force="true" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="false" id="bcpg:productHierarchy1" />
					<show force="false" id="bcpg:productHierarchy2" />
					<show force="true" id="bcpg:legalName" />
					<show force="false" id="bcpg:productComments" />
					<show force="true" id="cm:description" />
					<show force="true" id="bcpg:packagingDescription" />
					<show force="true" id="bcpg:productState" />
					<show force="true" id="bcpg:code" />
					<show force="true" id="bcpg:erpCode" />
					<show force="true" id="bcpg:casNumber" />
					<show force="true" id="bcpg:ecNumber" />
					<show force="true" id="bcpg:ceNumber" />
					<show force="true" id="bcpg:fdaNumber" />
					<show force="true" id="bcpg:femaNumber" />
					<show force="true" id="bcpg:flNumber" />
					<show force="true" id="bcpg:eanCode" />
					<show force="true" id="bcpg:suppliers" />
					<show force="true" id="bcpg:supplierPlants" />
					<show force="true" id="bcpg:supplierRefCode" />
					<show force="true" id="bcpg:plants" />
					<show force="true" id="bcpg:productGeoOrigin" />
					<show force="true" id="bcpg:entityTplRef" />
					<show force="true" id="bcpg:parentEntityRef" />
					<show force="true" id="bcpg:linkedSearchAssociation" />
					<show force="false" id="pjt:projectScore" />
					<show force="true" id="bcpg:productUnit" />
					<show force="true" id="bcpg:netWeight" />
					<show force="true" id="bcpg:productDensity" />
					<show force="true" id="bcpg:servingSizeUnit" />
					<show force="true" id="bcpg:componentLossPerc" />
					<show force="true" id="bcpg:reconstitutionRate" />
					<show force="true" id="bcpg:reconstitutionPriority" />
					<show force="true" id="bcpg:diluentRef" />
					<show force="true" id="bcpg:targetReconstitutionRef" />
					<show force="true" id="bcpg:evaporatedRate" />
					<show force="true" id="bcpg:meatType" />
					<show force="true" id="bcpg:productSpecifications" />
					<show force="true" id="bcpg:ingTypeV2" />
					<show force="true" id="bcpg:ingCEECode" />
					<show force="true" id="bcpg:useByDate" />
					<show force="true" id="bcpg:bestBeforeDate" />
					<show force="true" id="bcpg:periodAfterOpening" />
					<show force="true" id="bcpg:contractDate" />
					<show force="true" id="bcpg:storageConditionsRef" />
					<show force="true" id="bcpg:precautionOfUseRef" />
					<show force="true" id="bcpg:preparationTips" />
					<show force="true" id="bcpg:productMicrobioCriteriaRef" />
					<show force="true" id="bcpg:certificateDate" />
					<show force="true" id="pack:palletProductsPerBox" />
					<show force="true" id="pack:palletLayers" />
					<show force="true" id="pack:palletBoxesPerLayer" />
					<show force="true" id="pack:palletBoxesPerLastLayer" />
					<show force="true" id="pack:palletBoxesPerPallet" />
					<show force="true" id="pack:palletHeight" />
					<show force="true" id="pack:palletNumberOnGround" />
					<show force="true" id="pack:palletStackingMaxWeight" />
					<show force="true" id="pack:tare" />
					<show force="true" id="pack:tareUnit" />
					<show force="true" id="bcpg:nutrientProfileCategory" />
					<show force="true" id="bcpg:nutrientProfileVersion" />
					<show force="true" id="ghs:sdsStandardCode" />
					<show force="true" id="ghs:sdsSheetNumber" />
					<show force="true" id="ghs:sdsSheetEffectiveDate" />
					<show force="true" id="ghs:sdsSignalWord" />
					<show force="true" id="ghs:sdsPictograms" />
					<show force="true" id="ghs:sdsHazardStatements" />
					<show force="true" id="ghs:sdsPrecautionaryStatements" />
					<show force="true" id="ghs:sdsPersonalProtections" />
					<show force="true" id="ghs:sdsSafetyInstructions" />
					<show force="true" id="ghs:sdsOnuCode" />
					<show force="true" id="ghs:sdsClassCode" />
					<show force="true" id="ghs:sdsPackagingGroupCode" />
				</field-visibility>
				<appearance>
					<set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
					<field id="cm:title" label-id="becpg.forms.field.tradeName" description-id="becpg.forms.field.tradeName" mandatory="false"
						read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textfield.ftl" />
					</field>
					<field help-id="becpg.forms.help.productHierarchy1" id="bcpg:productHierarchy1" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productHierarchy2" id="bcpg:productHierarchy2" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/rawMaterial_Hierarchy
							</control-param>
							<control-param name="parent">bcpg_productHierarchy1
							</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.legalName" id="bcpg:legalName" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productComments" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="cm:description" mandatory="false" read-only="false" set="mainInfo">
						<control>
							<control-param name="activateLinks">true</control-param>
						</control>
					</field>
					<field id="bcpg:packagingDescription" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="bcpg:productState" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:code" mandatory="false" read-only="true" set="mainInfo" />
					<field id="bcpg:erpCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:casNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:ecNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:ceNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:fdaNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:femaNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:flNumber" mandatory="false" read-only="false" set="mainInfo" />
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" set="mainInfo">
						<constraint-handlers>
							<constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN" />
						</constraint-handlers>
					</field>
					<field id="bcpg:suppliers" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity
							</control-param>
							<control-param name="parentAssoc">bcpg_suppliers</control-param>
						</control>
					</field>
					<field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:plants" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />
					<field id="bcpg:entityTplRef" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
							</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
						</control>
					</field>
					<field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
							</control-param>
							<control-param name="excludeSources">true</control-param>
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
						</control>
					</field>
					<field id="bcpg:linkedSearchAssociation"  mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:ing,bcpg:rawMaterial
                            </control-param>
                        </control>
                    </field>
					<field id="pjt:projectScore" mandatory="false" read-only="false" set="mainInfo" />
					<set appearance="bordered-panel" id="formulation" label-id="becpg.forms.set.formulation.label"
						template="/org/alfresco/components/form/3-column-set.ftl" />
					<field help-id="becpg.forms.help.productSpecifications" id="bcpg:productSpecifications" mandatory="false" read-only="false"
						set="formulation">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
							</control-param>
							<control-param name="style">width:200px</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="consumer" label-id="becpg.forms.set.consumer.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:productUnit" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/product-unit.ftl">
							<control-param name="options">kg,g,lb,oz,L,cL,mL,m,m2,gal,cp,fl_oz,P|becpg.forms.field.productUnit
							</control-param>
						</control>
					</field>
					<field id="bcpg:netWeight" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<field id="bcpg:productDensity" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:servingSizeUnit" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:componentLossPerc" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionRate" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:reconstitutionPriority" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:diluentRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:targetReconstitutionRef" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showTooltip">false</control-param>
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="bcpg:evaporatedRate" mandatory="false" read-only="false" set="consumer" />

					<field id="bcpg:meatType" mandatory="false" read-only="false" set="consumer" />
					<field id="bcpg:ingTypeV2" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete.ftl">
							<control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
							</control-param>
						</control>
					</field>
					<field id="bcpg:ingCEECode" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.useByDate" id="bcpg:useByDate" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.bestBeforeDate" id="bcpg:bestBeforeDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mo</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.periodAfterOpening" id="bcpg:periodAfterOpening" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.contractDate" id="bcpg:contractDate" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">d</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.storageConditionsRef" id="bcpg:storageConditionsRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.precautionOfUseRef" id="bcpg:precautionOfUseRef" mandatory="false" read-only="false" set="consumer" />
					<field help-id="becpg.forms.help.preparationTips" id="bcpg:preparationTips" mandatory="false" read-only="false" set="consumer">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.productMicrobioCriteriaRef" id="bcpg:productMicrobioCriteriaRef" mandatory="false" read-only="false"
						set="consumer">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
						</control>
					</field>
					<field id="bcpg:certificateDate" mandatory="false" read-only="false" set="consumer" />
					<set appearance="bordered-panel" id="pallet" label-id="becpg.forms.set.pallet.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:palletProductsPerBox" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletLayers" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerLastLayer" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletBoxesPerPallet" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletHeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">mm</control-param>
						</control>
					</field>
					<field id="pack:palletNumberOnGround" mandatory="false" read-only="false" set="pallet" />
					<field id="pack:palletStackingMaxWeight" mandatory="false" read-only="false" set="pallet">
						<control template="/org/alfresco/components/form/controls/number-unit.ftl">
							<control-param name="unit">kg</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="tare" label-id="becpg.forms.set.tare.label" template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="pack:tare" mandatory="false" read-only="false" set="tare" />
					<field id="pack:tareUnit" mandatory="false" read-only="false" set="tare" />
					<set appearance="bordered-panel" id="score" label-id="becpg.forms.set.nutrient.score.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="bcpg:nutrientProfileCategory" mandatory="false" read-only="false" set="score">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
					<field id="bcpg:nutrientProfileVersion" mandatory="false" read-only="false" set="score">
						<control template="/org/alfresco/components/form/controls/selectone.ftl">
						</control>
					</field>
					<set appearance="bordered-panel" id="security" label-id="becpg.forms.set.security.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<field id="ghs:sdsSignalWord" mandatory="false" read-only="false" set="security" />
					<field id="ghs:sdsPictograms" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsHazardStatements" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPrecautionaryStatements" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPersonalProtections" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsSafetyInstructions" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="rows">2</control-param>
						</control>
					</field>
					<field id="ghs:sdsOnuCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsClassCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field id="ghs:sdsPackagingGroupCode" mandatory="false" read-only="false" set="security">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<set appearance="bordered-panel" id="categories" label-id="becpg.forms.set.category.label"
						template="/org/alfresco/components/form/2-column-set.ftl" />
					<set appearance="bordered-panel" id="audit" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
				</appearance>
			</form>

			<form id="product-list">
				<field-visibility>
					<show force="true" id="cm:name" />
					<show force="true" id="cm:title" />
					<show force="true" id="bcpg:productHierarchy1" />
					<show force="true" id="bcpg:productHierarchy2" />
					<show force="true" id="bcpg:legalName" />
					<show force="true" id="bcpg:productState" />
					<show force="true" id="bcpg:code" />
					<show force="true" id="bcpg:erpCode" />
					<show force="true" id="bcpg:eanCode" />
					<show force="true" id="bcpg:suppliers" />
					<show force="false" id="bcpg:productComments" />
					<show force="false" id="cm:description" />
					<show force="false" id="bcpg:packagingDescription" />
					<show force="false" id="bcpg:casNumber" />
					<show force="false" id="bcpg:ecNumber" />
					<show force="false" id="bcpg:ceNumber" />
					<show force="false" id="bcpg:fdaNumber" />
					<show force="false" id="bcpg:femaNumber" />
					<show force="false" id="bcpg:flNumber" />
					<show force="false" id="bcpg:supplierPlants" />
					<show force="false" id="bcpg:supplierRefCode" />
					<show force="false" id="bcpg:plants" />
					<show force="false" id="bcpg:productGeoOrigin" />
					<show force="false" id="bcpg:entityTplRef" />
					<show force="false" id="bcpg:parentEntityRef" />
					<show force="false" id="bcpg:linkedSearchAssociation" />
					<show force="false" id="pjt:projectScore" />
					<show force="false" id="bcpg:productUnit" />
					<show force="false" id="bcpg:netWeight" />
					<show force="false" id="bcpg:productDensity" />
					<show force="false" id="bcpg:servingSizeUnit" />
					<show force="false" id="bcpg:componentLossPerc" />
					<show force="false" id="bcpg:reconstitutionRate" />
					<show force="false" id="bcpg:reconstitutionPriority" />
					<show force="false" id="bcpg:diluentRef" />
					<show force="false" id="bcpg:targetReconstitutionRef" />
					<show force="false" id="bcpg:evaporatedRate" />
					<show force="false" id="bcpg:meatType" />
					<show force="false" id="bcpg:productSpecifications" />
					<show force="false" id="bcpg:ingTypeV2" />
					<show force="false" id="bcpg:ingCEECode" />
					<show force="false" id="bcpg:useByDate" />
					<show force="false" id="bcpg:bestBeforeDate" />
					<show force="false" id="bcpg:periodAfterOpening" />
					<show force="false" id="bcpg:contractDate" />
					<show force="false" id="bcpg:storageConditionsRef" />
					<show force="false" id="bcpg:precautionOfUseRef" />
					<show force="false" id="bcpg:preparationTips" />
					<show force="false" id="bcpg:productMicrobioCriteriaRef" />
					<show force="false" id="bcpg:certificateDate" />
					<show force="false" id="pack:palletProductsPerBox" />
					<show force="false" id="pack:palletLayers" />
					<show force="false" id="pack:palletBoxesPerLayer" />
					<show force="false" id="pack:palletBoxesPerLastLayer" />
					<show force="false" id="pack:palletBoxesPerPallet" />
					<show force="false" id="pack:palletHeight" />
					<show force="false" id="pack:palletNumberOnGround" />
					<show force="false" id="pack:palletStackingMaxWeight" />
					<show force="false" id="pack:tare" />
					<show force="false" id="pack:tareUnit" />
					<show force="false" id="bcpg:nutrientProfileCategory" />
					<show force="false" id="bcpg:nutrientProfileVersion" />
					<show force="false" id="ghs:sdsStandardCode" />
					<show force="false" id="ghs:sdsSheetNumber" />
					<show force="false" id="ghs:sdsSheetEffectiveDate" />
					<show force="false" id="ghs:sdsSignalWord" />
					<show force="false" id="ghs:sdsPictograms" />
					<show force="false" id="ghs:sdsHazardStatements" />
					<show force="false" id="ghs:sdsPrecautionaryStatements" />
					<show force="false" id="ghs:sdsPersonalProtections" />
					<show force="false" id="ghs:sdsSafetyInstructions" />
					<show force="false" id="ghs:sdsOnuCode" />
					<show force="false" id="ghs:sdsClassCode" />
					<show force="false" id="ghs:sdsPackagingGroupCode" />
				</field-visibility>
				<appearance>
					<field id="cm:name" read-only="true"></field>
					<field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity </control-param>
							<control-param name="parentAssoc">bcpg_suppliers</control-param>
						</control>
					</field>
				</appearance>
			</form>

			<form id="datagridWUsed">
				<field-visibility>
					<show id="bcpg:parentEntityRef" force="true" />
					<show id="cm:title" force="true" />
					<show id="cm:modified" force="true" />
					<show id="bcpg:formulatedDate" force="true" />
				</field-visibility>
			</form>
		</forms>
	</config>
</alfresco-config>
