📄 picklist.fo.ftl
字号:
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#list orderItems as orderItem>
<fo:block>${orderItem.orderId}:${orderItem.orderItemSeqId}-${orderItem.quantity}</fo:block>
</#list>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${inventoryItem.inventoryItemId}<#if inventoryItem.binNumber?exists>:${inventoryItem.binNumber}</#if></fo:block>
</fo:table-cell>
</fo:table-row>
<#-- toggle the row color -->
<#if rowColor == "white">
<#assign rowColor = "#D4D0C8">
<#else>
<#assign rowColor = "white">
</#if>
</#if>
</#list>
</#if>
<#else>
<fo:table-row font-weight="bold">
<fo:table-cell><fo:block>${uiLabelMap.ProductNoInventoryFoundToPick}.</fo:block></fo:table-cell>
</fo:table-row>
</#if>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
<#if orderHeaderInfoList?has_content>
<#list orderHeaderInfoList as orderHeaderInfo>
<#assign rowColor = "white">
<#-- orderHeaderInfoList: List of Maps with orderHeader and orderItemInfoList which is List of Maps with orderItem, product and orderItemInventoryResList -->
<#assign orderHeader = orderHeaderInfo.orderHeader>
<#assign orderItemInfoList = orderHeaderInfo.orderItemInfoList>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="xsl-region-body" font-family="Helvetica">
<fo:block font-size="14pt">Order ${orderHeaderInfo_index+1} to Pack, ID: ${orderHeader.orderId}</fo:block>
<fo:block space-after.optimum="10pt" font-size="10pt">
<fo:table>
<fo:table-column column-width="60pt"/>
<fo:table-column column-width="180pt"/>
<fo:table-column column-width="50pt"/>
<fo:table-column column-width="150pt"/>
<fo:table-header>
<fo:table-row font-weight="bold">
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.OrderOrderItem}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductProductId}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductToPack}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductInventoryAvailNotAvail}</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<#list orderItemInfoList as orderItemInfo>
<#assign orderItem = orderItemInfo.orderItem>
<#assign product = orderItemInfo.product>
<#assign orderItemInventoryResList = orderItemInfo.orderItemInventoryResList>
<fo:table-row>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${orderItem.orderItemSeqId}</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#if product?has_content>
<fo:block>${product.internalName} [${product.productId}]</fo:block>
<#else>
<fo:block> </fo:block>
</#if>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${orderItem.quantity}</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#list orderItemInventoryResList as orderItemInventoryRes>
<fo:block>${orderItemInventoryRes.inventoryItemId}:${orderItemInventoryRes.quantity}:${orderItemInventoryRes.quantityNotAvailable?if_exists}</fo:block>
</#list>
</fo:table-cell>
</fo:table-row>
<#-- toggle the row color -->
<#if rowColor == "white">
<#assign rowColor = "#D4D0C8">
<#else>
<#assign rowColor = "white">
</#if>
</#list>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</#list>
</#if>
<#if insufficientQohList?has_content || wrongQuantityReservedList?has_content>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="xsl-region-body" font-family="Helvetica">
<fo:block font-size="14pt">${uiLabelMap.ProductPickPackWarnings}</fo:block>
<#-- wrongQuantityReservedList: List of Maps with reservedQuantity and orderItem -->
<#-- insufficientQohList: List of Maps with inventoryItem and quantityNeeded -->
<#assign rowColor = "white">
<#list insufficientQohList?if_exists as insufficientQoh>
<#assign inventoryItem = insufficientQoh.inventoryItem>
<#assign quantityNeeded = insufficientQoh.quantityNeeded>
<fo:block font-size="10pt">
Inventory item with ID [${inventoryItem.inventoryItemId}] has ${inventoryItem.quantityOnHand?if_exists} on hand but needs ${quantityNeeded} for a full pick.
</fo:block>
<#-- toggle the row color -->
<#if rowColor == "white">
<#assign rowColor = "#D4D0C8">
<#else>
<#assign rowColor = "white">
</#if>
</#list>
<#list wrongQuantityReservedList?if_exists as wrongQuantityReserved>
<#assign orderItem = wrongQuantityReserved.orderItem>
<#assign reservedQuantity = wrongQuantityReserved.reservedQuantity>
<#assign issuedQuantity = wrongQuantityReserved.issuedQuantity>
<#assign reservedIssuedQuantity = wrongQuantityReserved.reservedIssuedQuantity>
<fo:block font-size="10pt">
Order Item ${orderItem.orderId}:${orderItem.orderItemSeqId} is for ${orderItem.quantity} of product ID [${orderItem.productId}] but ${reservedQuantity} was reserved and ${issuedQuantity} has been issued. The total reserved and issued is ${reservedIssuedQuantity} which does not equal: ${orderItem.quantity} the order item quantity.
</fo:block>
<#-- toggle the row color -->
<#if rowColor == "white">
<#assign rowColor = "#D4D0C8">
<#else>
<#assign rowColor = "white">
</#if>
</#list>
</fo:flow>
</fo:page-sequence>
</#if>
<#else>
<fo:block font-size="14pt">
${uiLabelMap.ProductFacilityViewPermissionError}
</fo:block>
</#if>
</fo:root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -