<#-- general request fields -->
<#-- special service fields -->
<#if purchaseOrder?has_content>
<#assign unitCost = firstOrderItem.unitPrice?default(standardCosts.get(firstOrderItem.productId)?default(0))/>
${uiLabelMap.ProductPurchaseOrder}
${purchaseOrder.orderId} / ${firstOrderItem.orderItemSeqId}
<#if 1 < purchaseOrderItems.size()>
(${uiLabelMap.ProductMultipleOrderItemsProduct} - ${purchaseOrderItems.size()}:1 ${uiLabelMap.ProductItemProduct})
<#else>
(${uiLabelMap.ProductSingleOrderItemProduct} - 1:1 ${uiLabelMap.ProductItemProduct})
#if>
#if>
${uiLabelMap.ProductProductId}
${requestParameters.productId?if_exists}
${uiLabelMap.ProductProductName}
${product.internalName?if_exists}
${uiLabelMap.ProductProductDescription}
${product.description?if_exists}
${uiLabelMap.ProductItemDescription}
${uiLabelMap.ProductInventoryItemType}
<#list inventoryItemTypes as nextInventoryItemType>
selected="selected"
#if>
>${nextInventoryItemType.get("description",locale)?default(nextInventoryItemType.inventoryItemTypeId)}
#list>
${uiLabelMap.ProductFacilityOwner}
<@htmlTemplate.lookupField formName="selectAllForm" name="ownerPartyId" id="ownerPartyId" fieldFormName="LookupPartyName"/>
${uiLabelMap.ProductSupplier}
<#if supplierPartyIds?has_content>
<#list supplierPartyIds as supplierPartyId>
selected="selected"#if>>
[${supplierPartyId}] ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, supplierPartyId, true)}
#list>
#if>
${uiLabelMap.ProductDateReceived}
<#-- [Now] -->
${uiLabelMap.lotId}
<#-- facility location(s) -->
<#assign facilityLocations = (product.getRelated("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId), null, false))?if_exists/>
${uiLabelMap.ProductFacilityLocation}
<#if facilityLocations?has_content>
<#list facilityLocations as productFacilityLocation>
<#assign facility = productFacilityLocation.getRelatedOne("Facility", true)/>
<#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation", false)?if_exists/>
<#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOne("TypeEnumeration", true))?if_exists/>
<#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}#if><#if facilityLocationTypeEnum?exists>(${facilityLocationTypeEnum.get("description",locale)})#if>[${productFacilityLocation.locationSeqId}]
#list>
${uiLabelMap.ProductNoLocation}
<#else>
<#if parameters.facilityId?exists>
<#assign LookupFacilityLocationView="LookupFacilityLocation?facilityId=${facilityId}">
<#else>
<#assign LookupFacilityLocationView="LookupFacilityLocation">
#if>
<@htmlTemplate.lookupField formName="selectAllForm" name="locationSeqId" id="locationSeqId" fieldFormName="${LookupFacilityLocationView}"/>
#if>
${uiLabelMap.ProductRejectedReason}
<#list rejectReasons as nextRejection>
${nextRejection.get("description",locale)?default(nextRejection.rejectionId)}
#list>
${uiLabelMap.ProductQuantityRejected}
${uiLabelMap.ProductQuantityAccepted}
${uiLabelMap.ProductPerUnitPrice}
<#-- get the default unit cost -->
<#if (!unitCost?exists || unitCost == 0.0)><#assign unitCost = standardCosts.get(product.productId)?default(0)/>#if>