📄 receivereturn.ftl
字号:
<td> </td> <#-- location(s) --> <td align="right"> <div class="tableheadtext">${uiLabelMap.ProductLocation}:</div> </td> <td align="right"> <#assign facilityLocations = (product.getRelatedByAnd("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId)))?if_exists> <#if facilityLocations?has_content> <select name="locationSeqId_o_${rowCount}" class="selectbox"> <#list facilityLocations as productFacilityLocation> <#assign facility = productFacilityLocation.getRelatedOneCache("Facility")> <#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation")?if_exists> <#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists> <option value="${productFacilityLocation.locationSeqId}"><#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.description})</#if>[${productFacilityLocation.locationSeqId}]</option> </#list> <option value="">${uiLabelMap.ProductNoLocation}</option> </select> <#else> <input type="text" class="inputBox" name="locationSeqId_o_${rowCount}" size="12"> </#if> </td> <td align="right" nowrap> <div class="tableheadtext">${uiLabelMap.ProductQtyReceived}:</div> </td> <td align="right"> <input type="text" class="inputBox" name="quantityAccepted_o_${rowCount}" size="6" value="${returnItem.returnQuantity?string.number}"> </td> </tr> <tr> <td width='10%'> <select name="inventoryItemTypeId_o_${rowCount}" size="1" class="selectBox"> <#list inventoryItemTypes as nextInventoryItemType> <option value='${nextInventoryItemType.inventoryItemTypeId}' <#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)> SELECTED </#if> >${nextInventoryItemType.description?default(nextInventoryItemType.inventoryItemTypeId)}</option> </#list> </select> </td> <td width="35%"> <span class="tableheadtext">${uiLabelMap.ProductInitialInventoryItemStatus}:</span> <select name="statusId_o_${rowCount}" size='1' class="selectBox"> <option value="INV_RETURNED">${uiLabelMap.ProductReturned}</option> <option value="INV_AVAILABLE">${uiLabelMap.ProductAvailable}</option> <option value="INV_DEFECTIVE" <#if returnItem.returnReasonId?default("") == "RTN_DEFECTIVE_ITEM">Selected</#if>>${uiLabelMap.ProductDefective}</option> </select> </td> <#if serializedInv?has_content> <td align="right"> <div class="tableheadtext">${uiLabelMap.ProductExistingInventoryItem}:</div> </td> <td align="right"> <select name="inventoryItemId_o_${rowCount}" class="selectBox"> <#list serializedInv as inventoryItem> <option>${inventoryItem.inventoryItemId}</option> </#list> </select> </td> <#else> <td colspan="2"> </td> </#if> <td align="right" nowrap> <div class="tableheadtext">${uiLabelMap.ProductPerUnitPrice}:</div> </td> <td align="right"> <input type='text' name='unitCost_o_0' size='6' value='${unitCost?default(0)?string("##0.00")}' class="inputBox"> </td> </tr> </table> </td> <td align="right"> <input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, 'selectAllForm');"> </td> </tr> <#assign rowCount = rowCount + 1> </#if> </#list> <tr> <td colspan="2"> <hr class="sepbar"> </td> </tr> <#if rowCount == 0> <tr> <td colspan="2"> <div class="tabletext">${uiLabelMap.ProductNoItemsReturn} #${returnHeader.returnId} ${uiLabelMap.ProductToReceive}.</div> </td> </tr> <tr> <td colspan="2" align="right"> <a href="<@ofbizUrl>ReceiveReturn?facilityId=${requestParameters.facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductReturnToReceiving}</a> </td> </tr> <#else> <tr> <td colspan="2" align="right"> <a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveSelectedProduct}</a> </td> </tr> </#if> </#if> </table> <input type="hidden" name="_rowCount" value="${rowCount}"> </form> <script language="JavaScript" type="text/javascript">selectAll('selectAllForm');</script> <#-- Initial Screen --><#else> <form name="selectAllForm" method="post" action="<@ofbizUrl>ReceiveReturn</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"> <input type="hidden" name="initialSelected" value="Y"> <table border='0' cellpadding='2' cellspacing='0'> <tr><td colspan="4"><div class="head3">${uiLabelMap.ProductReceiveReturn}</div></td></tr> <tr> <td width="15%" align='right'><div class="tabletext">${uiLabelMap.ProductReturnNumber}</div></td> <td> </td> <td width="90%"> <input type="text" class="inputBox" name="returnId" size="20" maxlength="20" value="${requestParameters.returnId?if_exists}"> </td> <td><div class='tabletext'> </div></td> </tr> <tr> <td colspan="2"> </td> <td colspan="2"> <a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveProduct}</a> </td> </tr> </table> </form></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -