diff --git a/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java b/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java index 6761f96d33..c7a780d7d5 100644 --- a/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java @@ -243,26 +243,26 @@ public class InvoiceServices { // create the invoice record if (UtilValidate.isEmpty(invoiceId)) { - Map createInvoiceContext = FastMap.newInstance(); - createInvoiceContext.put("partyId", billToCustomerPartyId); - createInvoiceContext.put("partyIdFrom", billFromVendorPartyId); - createInvoiceContext.put("billingAccountId", billingAccountId); - createInvoiceContext.put("invoiceDate", invoiceDate); - createInvoiceContext.put("dueDate", dueDate); - createInvoiceContext.put("invoiceTypeId", invoiceType); - // start with INVOICE_IN_PROCESS, in the INVOICE_READY we can't change the invoice (or shouldn't be able to...) - createInvoiceContext.put("statusId", "INVOICE_IN_PROCESS"); - createInvoiceContext.put("currencyUomId", orderHeader.getString("currencyUom")); - createInvoiceContext.put("userLogin", userLogin); + Map createInvoiceContext = FastMap.newInstance(); + createInvoiceContext.put("partyId", billToCustomerPartyId); + createInvoiceContext.put("partyIdFrom", billFromVendorPartyId); + createInvoiceContext.put("billingAccountId", billingAccountId); + createInvoiceContext.put("invoiceDate", invoiceDate); + createInvoiceContext.put("dueDate", dueDate); + createInvoiceContext.put("invoiceTypeId", invoiceType); + // start with INVOICE_IN_PROCESS, in the INVOICE_READY we can't change the invoice (or shouldn't be able to...) + createInvoiceContext.put("statusId", "INVOICE_IN_PROCESS"); + createInvoiceContext.put("currencyUomId", orderHeader.getString("currencyUom")); + createInvoiceContext.put("userLogin", userLogin); - // store the invoice first - Map createInvoiceResult = dispatcher.runSync("createInvoice", createInvoiceContext); - if (ServiceUtil.isError(createInvoiceResult)) { - return ServiceUtil.returnError(UtilProperties.getMessage(resource,"AccountingErrorCreatingInvoiceFromOrder",locale), null, null, createInvoiceResult); - } + // store the invoice first + Map createInvoiceResult = dispatcher.runSync("createInvoice", createInvoiceContext); + if (ServiceUtil.isError(createInvoiceResult)) { + return ServiceUtil.returnError(UtilProperties.getMessage(resource,"AccountingErrorCreatingInvoiceFromOrder",locale), null, null, createInvoiceResult); + } - // call service, not direct entity op: delegator.create(invoice); - invoiceId = (String) createInvoiceResult.get("invoiceId"); + // call service, not direct entity op: delegator.create(invoice); + invoiceId = (String) createInvoiceResult.get("invoiceId"); } // order roles to invoice roles @@ -494,15 +494,15 @@ public class InvoiceServices { } if ("ItemIssuance".equals(currentValue.getEntityName())) { - List shipmentItemBillings = delegator.findByAnd("ShipmentItemBilling", UtilMisc.toMap("shipmentId", currentValue.get("shipmentId"))); - if (UtilValidate.isEmpty(shipmentItemBillings)) { + List shipmentItemBillings = delegator.findByAnd("ShipmentItemBilling", UtilMisc.toMap("shipmentId", currentValue.get("shipmentId"))); + if (UtilValidate.isEmpty(shipmentItemBillings)) { - // create the ShipmentItemBilling record - GenericValue shipmentItemBilling = delegator.makeValue("ShipmentItemBilling", UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemSeqId", invoiceItemSeqId)); - shipmentItemBilling.put("shipmentId", currentValue.get("shipmentId")); - shipmentItemBilling.put("shipmentItemSeqId", currentValue.get("shipmentItemSeqId")); - shipmentItemBilling.create(); - } + // create the ShipmentItemBilling record + GenericValue shipmentItemBilling = delegator.makeValue("ShipmentItemBilling", UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemSeqId", invoiceItemSeqId)); + shipmentItemBilling.put("shipmentId", currentValue.get("shipmentId")); + shipmentItemBilling.put("shipmentItemSeqId", currentValue.get("shipmentItemSeqId")); + shipmentItemBilling.create(); + } } String parentInvoiceItemSeqId = invoiceItemSeqId; diff --git a/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.groovy b/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.groovy index 87b62f2904..f19bdab9be 100644 --- a/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.groovy +++ b/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.groovy @@ -138,26 +138,26 @@ if (orderId) { if ("ORDER_APPROVED".equals(orderHeader.statusId)) { if (shipGroupSeqId) { - if (shipment) { + if (shipment) { - // Generate the shipment cost estimate for the ship group - productStoreId = orh.getProductStoreId(); - shippableItemInfo = orh.getOrderItemAndShipGroupAssoc(shipGroupSeqId); - shippableItems = delegator.findList("OrderItemAndShipGrpInvResAndItemSum", EntityCondition.makeCondition([orderId : orderId, shipGroupSeqId : shipGroupSeqId]), null, null, null, false); - shippableTotal = new Double(orh.getShippableTotal(shipGroupSeqId).doubleValue()); - shippableWeight = new Double(orh.getShippableWeight(shipGroupSeqId).doubleValue()); - shippableQuantity = new Double(orh.getShippableQuantity(shipGroupSeqId).doubleValue()); - shipmentCostEstimate = packSession.getShipmentCostEstimate(orderItemShipGroup, productStoreId, shippableItemInfo, shippableTotal, shippableWeight, shippableQuantity); - context.shipmentCostEstimateForShipGroup = shipmentCostEstimate; - context.productStoreId = productStoreId; + // Generate the shipment cost estimate for the ship group + productStoreId = orh.getProductStoreId(); + shippableItemInfo = orh.getOrderItemAndShipGroupAssoc(shipGroupSeqId); + shippableItems = delegator.findList("OrderItemAndShipGrpInvResAndItemSum", EntityCondition.makeCondition([orderId : orderId, shipGroupSeqId : shipGroupSeqId]), null, null, null, false); + shippableTotal = new Double(orh.getShippableTotal(shipGroupSeqId).doubleValue()); + shippableWeight = new Double(orh.getShippableWeight(shipGroupSeqId).doubleValue()); + shippableQuantity = new Double(orh.getShippableQuantity(shipGroupSeqId).doubleValue()); + shipmentCostEstimate = packSession.getShipmentCostEstimate(orderItemShipGroup, productStoreId, shippableItemInfo, shippableTotal, shippableWeight, shippableQuantity); + context.shipmentCostEstimateForShipGroup = shipmentCostEstimate; + context.productStoreId = productStoreId; - if (!picklistBinId) { - packSession.addItemInfo(shippableItems); - //context.put("itemInfos", shippableItemInfo); + if (!picklistBinId) { + packSession.addItemInfo(shippableItems); + //context.put("itemInfos", shippableItemInfo); + } + } else { + request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage("OrderErrorUiLabels", "OrderErrorOrderNotVerifiedForPacking", [orderId : orderId], locale)); } - } else { - request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage("OrderErrorUiLabels", "OrderErrorOrderNotVerifiedForPacking", [orderId : orderId], locale)); - } } else { request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage("ProductErrorUiLabels", "ProductErrorNoShipGroupSequenceIdFoundCannotProcess", locale)); } diff --git a/applications/product/webapp/facility/shipment/PackOrder.ftl b/applications/product/webapp/facility/shipment/PackOrder.ftl index 68ccd6060c..e5d19b8168 100644 --- a/applications/product/webapp/facility/shipment/PackOrder.ftl +++ b/applications/product/webapp/facility/shipment/PackOrder.ftl @@ -35,18 +35,18 @@ under the License.
<#if shipmentId?has_content && invoiceIds?exists && invoiceIds?has_content>
- ${uiLabelMap.CommonView} ${uiLabelMap.ProductPackingSlip} ${uiLabelMap.CommonOr} - ${uiLabelMap.CommonView} ${uiLabelMap.ProductBarcode} ${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentId} ${shipmentId} + ${uiLabelMap.CommonView} ${uiLabelMap.ProductPackingSlip} ${uiLabelMap.CommonOr} + ${uiLabelMap.CommonView} ${uiLabelMap.ProductBarcode} ${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentId} ${shipmentId}

${uiLabelMap.AccountingInvoices}:

@@ -54,444 +54,440 @@ under the License.
- - - - - - - - - - - - - -
${uiLabelMap.ProductOrderId}  - - / - - ${uiLabelMap.ProductHideGrid} checked=""> 
  - - ${uiLabelMap.ProductPackOrder} -
+ + + + + + + + + + + + + +
${uiLabelMap.ProductOrderId}  + + / + + ${uiLabelMap.ProductHideGrid} checked=""> 
  + + ${uiLabelMap.ProductPackOrder} +

- - - - - - - - - - - - - -
${uiLabelMap.FormFieldTitle_picklistBinId}  - - ${uiLabelMap.ProductHideGrid} checked=""> 
  - - ${uiLabelMap.ProductPackOrder} -
+ + + + + + + + + + + + + +
${uiLabelMap.FormFieldTitle_picklistBinId}  + + ${uiLabelMap.ProductHideGrid} checked=""> 
  + + ${uiLabelMap.ProductPackOrder} +
- - - + + +
- - - + + +
<#if ((shipment?has_content) && (shipment.shipmentId)?exists)> - <#if showInput != "N" && ((orderHeader?exists && orderHeader?has_content))> -
-
-
    -
  • ${uiLabelMap.ProductOrderId} #${orderId} / ${uiLabelMap.ProductOrderShipGroupId} #${shipGroupSeqId}
  • -
-
-
-
- <#if orderItemShipGroup?has_content> - <#assign postalAddress = orderItemShipGroup.getRelatedOne("PostalAddress")> - <#assign carrier = orderItemShipGroup.carrierPartyId?default("N/A")> - - - - - - - - -
- ${uiLabelMap.ProductShipToAddress} -
- ${uiLabelMap.CommonTo}: ${postalAddress.toName?default("")} -
- <#if postalAddress.attnName?has_content> - ${uiLabelMap.CommonAttn}: ${postalAddress.attnName} -
- - ${postalAddress.address1} -
- <#if postalAddress.address2?has_content> - ${postalAddress.address2} -
- - ${postalAddress.city?if_exists}, ${postalAddress.stateProvinceGeoId?if_exists} ${postalAddress.postalCode?if_exists} -
- ${postalAddress.countryGeoId} -
-
  - ${uiLabelMap.ProductCarrierShipmentMethod} -
- <#if carrier == "USPS"> - <#assign color = "red"> - <#elseif carrier == "UPS"> - <#assign color = "green"> - <#else> - <#assign color = "black"> - - <#if carrier != "_NA_"> - ${carrier} -   - - ${orderItemShipGroup.shipmentMethodTypeId?default("??")} -
- ${uiLabelMap.ProductEstimatedShipCostForShipGroup} -
- <#if shipmentCostEstimateForShipGroup?exists> - <@ofbizCurrency amount=shipmentCostEstimateForShipGroup isoCode=orderReadHelper.getCurrency()?if_exists/> -
- -
  - ${uiLabelMap.OrderInstructions} -
- ${orderItemShipGroup.shippingInstructions?default("(${uiLabelMap.CommonNone})")} -
- - - - <#if showInput != "N"> -
-
- - - - - - - - - - -
-
- ${uiLabelMap.ProductProductNumber} - - @ - - ${uiLabelMap.ProductPackItem} -
-
- ${uiLabelMap.ProductCurrentPackageSequence} - ${packingSession.getCurrentPackageSeq()} - -
-
- - - - <#assign itemInfos = packingSession.getItemInfos()?if_exists> - <#if showInput != "N" && hideGrid != "Y" && itemInfos?has_content> -
-
- - - - - - - - - - - - - - - - - - - - - - - <#if (itemInfos?has_content)> - <#assign rowKey = 1> - <#list itemInfos as itemInfo> - <#-- <#list itemInfos as orderItem> --> - <#assign orderItem = itemInfo.orderItem/> - <#assign shippedQuantity = orderReadHelper.getItemShippedQuantity(orderItem)?if_exists> - <#assign orderItemQuantity = itemInfo.quantity/> - <#assign orderProduct = orderItem.getRelatedOne("Product")?if_exists/> - <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, itemInfo.productId)?if_exists/> - <#-- - <#if orderItem.cancelQuantity?exists> - <#assign orderItemQuantity = orderItem.quantity - orderItem.cancelQuantity> - <#else> - <#assign orderItemQuantity = orderItem.quantity> - - --> - <#assign inputQty = orderItemQuantity - packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId, itemInfo.productId)> - - - - - - - - - - - - - - - - - <#assign rowKey = rowKey + 1> - - - - - - -
 ${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductInternalName}${uiLabelMap.ProductOrderedQuantity}${uiLabelMap.ProductQuantityShipped}${uiLabelMap.ProductPackedQty} ${uiLabelMap.ProductPackQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval})${uiLabelMap.ProductPackage} * ${uiLabelMap.ProductPackages}
0)>checked=""/>${orderItem.orderItemSeqId} - ${orderProduct.productId?default("N/A")} - <#if orderProduct.productId != product.productId> -  ${product.productId?default("N/A")} - - - ${(orderProduct.internalName)?if_exists} - <#if orderProduct.productId != product.productId> -  [${(product.internalName)?if_exists}] - - ${orderItemQuantity}${shippedQuantity?default(0)}${packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId, itemInfo.productId)}  - - - - - - - -
 
- -   - -
-
-
- - - - <#if showInput != "N"> -
- - - - - - - - -
- - - <#assign packageSeqIds = packingSession.getPackageSeqIds()/> - <#if packageSeqIds?has_content> - - - -
- ${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}): -
- <#list packageSeqIds as packageSeqId> - ${uiLabelMap.ProductPackage} ${packageSeqId} - + <#if showInput != "N" && ((orderHeader?exists && orderHeader?has_content))> +
+
+
    +
  • ${uiLabelMap.ProductOrderId} #${orderId} / ${uiLabelMap.ProductOrderShipGroupId} #${shipGroupSeqId}
  • +
+
+
+
+ <#if orderItemShipGroup?has_content> + <#assign postalAddress = orderItemShipGroup.getRelatedOne("PostalAddress")> + <#assign carrier = orderItemShipGroup.carrierPartyId?default("N/A")> + + + - - - + + + + + +
+ ${uiLabelMap.ProductShipToAddress}
- - <#if orderItemShipGroup?has_content> - - - - - - -
- ${uiLabelMap.ProductAdditionalShippingCharge}: -
- - <#if packageSeqIds?has_content> - ${uiLabelMap.ProductEstimateShipCost} -
- -
- ${uiLabelMap.ProductHandlingInstructions}: + ${uiLabelMap.CommonTo}: ${postalAddress.toName?default("")} +
+ <#if postalAddress.attnName?has_content> + ${uiLabelMap.CommonAttn}: ${postalAddress.attnName} +
+ + ${postalAddress.address1} +
+ <#if postalAddress.address2?has_content> + ${postalAddress.address2} +
+ + ${postalAddress.city?if_exists}, ${postalAddress.stateProvinceGeoId?if_exists} ${postalAddress.postalCode?if_exists} +
+ ${postalAddress.countryGeoId} +
+
  + ${uiLabelMap.ProductCarrierShipmentMethod} +
+ <#if carrier == "USPS"> + <#assign color = "red"> + <#elseif carrier == "UPS"> + <#assign color = "green"> + <#else> + <#assign color = "black"> + + <#if carrier != "_NA_"> + ${carrier} +   + + ${orderItemShipGroup.shipmentMethodTypeId?default("??")} +
+ ${uiLabelMap.ProductEstimatedShipCostForShipGroup} +
+ <#if shipmentCostEstimateForShipGroup?exists> + <@ofbizCurrency amount=shipmentCostEstimateForShipGroup isoCode=orderReadHelper.getCurrency()?if_exists/> +
+ +
  + ${uiLabelMap.OrderInstructions} +
+ ${orderItemShipGroup.shippingInstructions?default("(${uiLabelMap.CommonNone})")} +
+ + + + <#if showInput != "N"> +
+ + + + + + + + + + + +
+
+ ${uiLabelMap.ProductProductNumber} + + @ + + ${uiLabelMap.ProductPackItem} +
+
+ ${uiLabelMap.ProductCurrentPackageSequence} + ${packingSession.getCurrentPackageSeq()} + +
+ + + + + <#assign itemInfos = packingSession.getItemInfos()?if_exists> + <#if showInput != "N" && hideGrid != "Y" && itemInfos?has_content>
- -
-
- <#assign buttonName = "${uiLabelMap.ProductComplete}"> - <#if forceComplete?default("false") == "true"> - <#assign buttonName = "${uiLabelMap.ProductCompleteForce}"> - - -
-
-
- - -
-
+
+ + + + + + + + + + + + + + + + + + + + + <#if (itemInfos?has_content)> + <#assign rowKey = 1> + <#list itemInfos as itemInfo> + <#-- <#list itemInfos as orderItem> --> + <#assign orderItem = itemInfo.orderItem/> + <#assign shippedQuantity = orderReadHelper.getItemShippedQuantity(orderItem)?if_exists> + <#assign orderItemQuantity = itemInfo.quantity/> + <#assign orderProduct = orderItem.getRelatedOne("Product")?if_exists/> + <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, itemInfo.productId)?if_exists/> + <#-- + <#if orderItem.cancelQuantity?exists> + <#assign orderItemQuantity = orderItem.quantity - orderItem.cancelQuantity> + <#else> + <#assign orderItemQuantity = orderItem.quantity> + + --> + <#assign inputQty = orderItemQuantity - packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId, itemInfo.productId)> + + + + + + + + + + + + + + + + + <#assign rowKey = rowKey + 1> + + + + + + +
 ${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductInternalName}${uiLabelMap.ProductOrderedQuantity}${uiLabelMap.ProductQuantityShipped}${uiLabelMap.ProductPackedQty} ${uiLabelMap.ProductPackQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval})${uiLabelMap.ProductPackage} * ${uiLabelMap.ProductPackages}
0)>checked=""/>${orderItem.orderItemSeqId} + ${orderProduct.productId?default("N/A")} + <#if orderProduct.productId != product.productId> +  ${product.productId?default("N/A")} + + + ${(orderProduct.internalName)?if_exists} + <#if orderProduct.productId != product.productId> +  [${(product.internalName)?if_exists}] + + ${orderItemQuantity}${shippedQuantity?default(0)}${packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId, itemInfo.productId)}  + + + + + + + +
 
+ +   + +
+
+
+ - - <#assign linesByPackageResultMap = packingSession.getPackingSessionLinesByPackage()?if_exists> - <#assign packageMap = linesByPackageResultMap.get("packageMap")?if_exists> - <#assign sortedKeys = linesByPackageResultMap.get("sortedKeys")?if_exists> - <#if ((packageMap?has_content) && (sortedKeys?has_content))> -
-
-
    -
  • ${uiLabelMap.ProductPackages} : ${sortedKeys.size()?if_exists}
  • -
-
-
-
- <#list sortedKeys as key> - <#assign packedLines = packageMap.get(key)> - <#if packedLines?has_content> -
- <#assign packedLine = packedLines.get(0)?if_exists> - ${uiLabelMap.ProductPackage} ${packedLine.getPackageSeq()?if_exists} -
- - - - - - - - - - - - <#list packedLines as line> - <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, line.getProductId())/> - - - - - - - - - - - -
${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductProductDescription}${uiLabelMap.ProductInventoryItem} #${uiLabelMap.ProductPackedQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}) (${uiLabelMap.ProductPackage})${uiLabelMap.ProductPackage} # 
${line.getOrderItemSeqId()}${line.getProductId()?default("N/A")} - ${product.internalName?if_exists?default("[N/A]")} - ${line.getInventoryItemId()}${line.getQuantity()}${line.getWeight()} (${packingSession.getPackageWeight(line.getPackageSeq()?int)?if_exists})${line.getPackageSeq()}" class="buttontext">${uiLabelMap.CommonClear}
- - -
-
+ + <#if showInput != "N"> +
+ + + + + + + + +
+ + + <#assign packageSeqIds = packingSession.getPackageSeqIds()/> + <#if packageSeqIds?has_content> + + + + + + +
+ ${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}): +
+ <#list packageSeqIds as packageSeqId> + ${uiLabelMap.ProductPackage} ${packageSeqId} + +
+ + <#if orderItemShipGroup?has_content> + + + + + + +
+ ${uiLabelMap.ProductAdditionalShippingCharge}: +
+ + <#if packageSeqIds?has_content> + ${uiLabelMap.ProductEstimateShipCost} +
+ +
+ ${uiLabelMap.ProductHandlingInstructions}: +
+ +
+
+ <#assign buttonName = "${uiLabelMap.ProductComplete}"> + <#if forceComplete?default("false") == "true"> + <#assign buttonName = "${uiLabelMap.ProductCompleteForce}"> + + +
+
+
+
+ + + + + + <#assign linesByPackageResultMap = packingSession.getPackingSessionLinesByPackage()?if_exists> + <#assign packageMap = linesByPackageResultMap.get("packageMap")?if_exists> + <#assign sortedKeys = linesByPackageResultMap.get("sortedKeys")?if_exists> + <#if ((packageMap?has_content) && (sortedKeys?has_content))> +
+
+
    +
  • ${uiLabelMap.ProductPackages} : ${sortedKeys.size()?if_exists}
  • +
+
+
+
+ <#list sortedKeys as key> + <#assign packedLines = packageMap.get(key)> + <#if packedLines?has_content> +
+ <#assign packedLine = packedLines.get(0)?if_exists> + ${uiLabelMap.ProductPackage} ${packedLine.getPackageSeq()?if_exists} +
+ + + + + + + + + + + + <#list packedLines as line> + <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, line.getProductId())/> + + + + + + + + + + + +
${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductProductDescription}${uiLabelMap.ProductInventoryItem} #${uiLabelMap.ProductPackedQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}) (${uiLabelMap.ProductPackage})${uiLabelMap.ProductPackage} # 
${line.getOrderItemSeqId()}${line.getProductId()?default("N/A")} + ${product.internalName?if_exists?default("[N/A]")} + ${line.getInventoryItemId()}${line.getQuantity()}${line.getWeight()} (${packingSession.getPackageWeight(line.getPackageSeq()?int)?if_exists})${line.getPackageSeq()}" class="buttontext">${uiLabelMap.CommonClear}
+ + +
+
+ + + + <#assign packedLines = packingSession.getLines()?if_exists> + <#if packedLines?has_content> +
+
+
    +
  • ${uiLabelMap.ProductItems} (${uiLabelMap.ProductPackages}): ${packedLines.size()?if_exists}
  • +
+
+
+
+ + + + + + + + + + + + <#list packedLines as line> + <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, line.getProductId())/> + + + + + + + + + + + +
${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductProductDescription}${uiLabelMap.ProductInventoryItem} #${uiLabelMap.ProductPackedQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}) (${uiLabelMap.ProductPackage})${uiLabelMap.ProductPackage} # 
${line.getOrderItemSeqId()}${line.getProductId()?default("N/A")} + ${product.internalName?if_exists?default("[N/A]")} + ${line.getInventoryItemId()}${line.getQuantity()}${line.getWeight()} (${packingSession.getPackageWeight(line.getPackageSeq()?int)?if_exists})${line.getPackageSeq()}" class="buttontext">${uiLabelMap.CommonClear}
+
+
+ + - - <#assign packedLines = packingSession.getLines()?if_exists> - <#if packedLines?has_content> -
-
-
    -
  • ${uiLabelMap.ProductItems} (${uiLabelMap.ProductPackages}): ${packedLines.size()?if_exists}
  • -
-
-
-
- - - - - - - - - - - - <#list packedLines as line> - <#assign product = Static["org.ofbiz.product.product.ProductWorker"].findProduct(delegator, line.getProductId())/> - - - - - - - - - - - -
${uiLabelMap.ProductItem} #${uiLabelMap.ProductProductId}${uiLabelMap.ProductProductDescription}${uiLabelMap.ProductInventoryItem} #${uiLabelMap.ProductPackedQty}${uiLabelMap.ProductPackedWeight} (${("uiLabelMap.ProductShipmentUomAbbreviation_" + defaultWeightUomId)?eval}) (${uiLabelMap.ProductPackage})${uiLabelMap.ProductPackage} # 
${line.getOrderItemSeqId()}${line.getProductId()?default("N/A")} - ${product.internalName?if_exists?default("[N/A]")} - ${line.getInventoryItemId()}${line.getQuantity()}${line.getWeight()} (${packingSession.getPackageWeight(line.getPackageSeq()?int)?if_exists})${line.getPackageSeq()}" class="buttontext">${uiLabelMap.CommonClear}
-
-
+ <#if orderId?has_content> + + <#else> + - - - <#if orderId?has_content> - - <#else> - - - - - <#else> -

${uiLabelMap.ProductFacilityViewPermissionError}

+

${uiLabelMap.ProductFacilityViewPermissionError}

\ No newline at end of file