diff --git a/applications/order/webapp/ordermgr/return/ReturnForms.xml b/applications/order/webapp/ordermgr/return/ReturnForms.xml index 2a437bba20..e030c1c6e0 100644 --- a/applications/order/webapp/ordermgr/return/ReturnForms.xml +++ b/applications/order/webapp/ordermgr/return/ReturnForms.xml @@ -1,4 +1,4 @@ - + +<#assign selected = tabButtonItem?default("void")> <#if returnHeader?exists> -
- ${uiLabelMap.OrderReturnHeader} - ${uiLabelMap.OrderReturnItems} +
+ +
PDF @@ -36,251 +40,258 @@ under the License.
-<#if returnHeader?exists> -
- - - -<#else> - - - - - - <#if returnHeader?exists> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <#if returnHeader?has_content> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <#else> - - - - - - - - -
 
${uiLabelMap.OrderReturnId}
  - ${returnHeader.returnId} -
 
${uiLabelMap.CommonCurrency}
  - <#if returnHeader?exists> - ${returnHeader.currencyUomId?if_exists} - <#else> - - -
 
${uiLabelMap.OrderEntryDate}
  - <#if returnInfo.entryDate?exists> - <#assign entryDate = returnInfo.get("entryDate").toString()> - - - Calendar -
 
${uiLabelMap.OrderReturnFromParty}
  - - - Click here For Field Lookup - -
 
${uiLabelMap.OrderReturnToFacility}
  -
 
${uiLabelMap.AccountingBillingAccount}
  - <#if billingAccountList?has_content> - - <#else> - - -
 ${uiLabelMap.FormFieldTitle_paymentMethodId}  - <#if creditCardList?exists || eftAccountList?exists> - - <#else> - - - <#if (returnHeader.fromPartyId)?has_content> - ${uiLabelMap.AccountingCreateNewCreditCard} - -
 
${uiLabelMap.OrderReturnNeedsAutoReceive}
  - -
 
${uiLabelMap.CommonReturnStatus}
  - -
 
${uiLabelMap.FormFieldTitle_createdBy}
  - ${returnHeader.createdBy?default("Unknown")} -
 
${uiLabelMap.OrderReturnFromAddress}
 
- <#if (addressEditable)> - <#list addresses as address > - <@displayAddress postalAddress = address.postalAddress editable = true/> - - checked="checked">${uiLabelMap.CommonNoAddress} +
+
+
    +
  • ${uiLabelMap.PageTitleReturnHeader}
  • +
+
+
+
+ <#if returnHeader?exists> + + + + <#else> - <#if (postalAddressFrom?has_content)> - <@displayAddress postalAddress = postalAddressFrom editable = false /> - <#else> - ${uiLabelMap.CommonNoAddress} - + + -
-
 
${uiLabelMap.OrderReturnToAddress}
  - <#if (postalAddressTo?has_content)> - <@displayAddress postalAddress = postalAddressTo editable=false /> - -
    - -
    - -
-<#macro displayAddress postalAddress editable> - <#if postalAddress?has_content> -
- <#if (editable)> - checked="checked"> - - <#if postalAddress.toName?has_content>${uiLabelMap.CommonTo}: ${postalAddress.toName}
- <#if postalAddress.attnName?has_content>${uiLabelMap.CommonAttn}: ${postalAddress.attnName}
- <#if postalAddress.address1?has_content>    ${postalAddress.address1}
- <#if postalAddress.address2?has_content>    ${postalAddress.address2}
- <#if postalAddress.city?has_content>    ${postalAddress.city} - <#if postalAddress.stateProvinceGeoId?has_content> ${postalAddress.stateProvinceGeoId} - <#if postalAddress.postalCode?has_content> ${postalAddress.postalCode} - <#if postalAddress.countryGeoId?has_content>
    ${postalAddress.countryGeoId} -
- - + + + <#if returnHeader?exists> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <#if returnHeader?has_content> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <#else> + + + + + + + + +
 ${uiLabelMap.OrderReturnId} ${returnHeader.returnId}
 ${uiLabelMap.CommonCurrency}  + <#if returnHeader?exists> + ${returnHeader.currencyUomId?if_exists} + <#else> + + +
 ${uiLabelMap.OrderEntryDate}  + <#if returnInfo.entryDate?exists> + <#assign entryDate = returnInfo.get("entryDate").toString()> + + + Calendar +
 ${uiLabelMap.OrderReturnFromParty}  + + + Click here For Field Lookup + +
 ${uiLabelMap.OrderReturnToFacility}  +
 ${uiLabelMap.AccountingBillingAccount}  + <#if billingAccountList?has_content> + + <#else> + + +
 ${uiLabelMap.FormFieldTitle_paymentMethodId}  + <#if creditCardList?exists || eftAccountList?exists> + + <#else> + + + <#if (returnHeader.fromPartyId)?has_content> + ${uiLabelMap.AccountingCreateNewCreditCard} + +
 ${uiLabelMap.OrderReturnNeedsAutoReceive}  + +
 ${uiLabelMap.CommonReturnStatus}  + +
 ${uiLabelMap.FormFieldTitle_createdBy} ${returnHeader.createdBy?default("Unknown")}
 ${uiLabelMap.OrderReturnFromAddress}  +
+ <#if (addressEditable)> + <#list addresses as address > + <@displayAddress postalAddress = address.postalAddress editable = true/> + + checked="checked">${uiLabelMap.CommonNoAddress} + <#else> + <#if (postalAddressFrom?has_content)> + <@displayAddress postalAddress = postalAddressFrom editable = false /> + <#else> + ${uiLabelMap.CommonNoAddress} + + +
+
 ${uiLabelMap.OrderReturnToAddress}  + <#if (postalAddressTo?has_content)> + <@displayAddress postalAddress = postalAddressTo editable=false /> + +
    + +
    + +
+ <#macro displayAddress postalAddress editable> + <#if postalAddress?has_content> +
+ <#if (editable)> + checked="checked"> + + <#if postalAddress.toName?has_content>${uiLabelMap.CommonTo} ${postalAddress.toName}
+ <#if postalAddress.attnName?has_content>${uiLabelMap.CommonAttn} ${postalAddress.attnName}
+ <#if postalAddress.address1?has_content>    ${postalAddress.address1}
+ <#if postalAddress.address2?has_content>    ${postalAddress.address2}
+ <#if postalAddress.city?has_content>    ${postalAddress.city} + <#if postalAddress.stateProvinceGeoId?has_content> ${postalAddress.stateProvinceGeoId} + <#if postalAddress.postalCode?has_content> ${postalAddress.postalCode} + <#if postalAddress.countryGeoId?has_content>
    ${postalAddress.countryGeoId} +
+ + +
+
\ No newline at end of file diff --git a/applications/order/webapp/ordermgr/return/returnItemInc.ftl b/applications/order/webapp/ordermgr/return/returnItemInc.ftl index 072516e5f6..322be892dd 100644 --- a/applications/order/webapp/ordermgr/return/returnItemInc.ftl +++ b/applications/order/webapp/ordermgr/return/returnItemInc.ftl @@ -16,241 +16,236 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> + + + + + + <#-- information about orders and amount refunded/credited on past returns --> + <#if orh?exists> + + + + + + + + + + + + + + <#if returnableItems?has_content> + <#assign rowCount = 0> + <#assign alt_row = false> + <#list returnableItems.keySet() as orderItem> + <#if orderItem.orderAdjustmentId?has_content> + <#-- this is an order item adjustment --> + <#assign returnAdjustmentType = returnItemTypeMap.get(orderItem.get("orderAdjustmentTypeId"))/> + <#assign adjustmentType = orderItem.getRelatedOne("OrderAdjustmentType")/> + <#assign description = orderItem.description?default(adjustmentType.get("description",locale))/> -

${uiLabelMap.OrderReturnFromOrder} #${orderId}

+ ${uiLabelMap.CommonSelectAll}  + +
+ + + + + + + + + + + + + +
${uiLabelMap.OrderOrderTotal}<@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyCredited}<@ofbizCurrency amount=orh.getOrderReturnedCreditTotalBd() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyRefunded}<@ofbizCurrency amount=orh.getOrderReturnedRefundTotalBd() isoCode=orh.getCurrency()/>
+
${uiLabelMap.CommonDescription}${uiLabelMap.OrderOrderQty}${uiLabelMap.OrderReturnQty}${uiLabelMap.OrderUnitPrice}${uiLabelMap.OrderReturnPrice}*${uiLabelMap.OrderReturnReason}${uiLabelMap.OrderReturnType}${uiLabelMap.OrderItemStatus}${uiLabelMap.OrderOrderInclude}?
- - - - - - <#-- information about orders and amount refunded/credited on past returns --> - <#if orh?exists> - - - - - - - - - - - - - - - <#if returnableItems?has_content> - <#assign rowCount = 0> - <#list returnableItems.keySet() as orderItem> - <#if orderItem.orderAdjustmentId?has_content> - <#-- this is an order item adjustment --> - <#assign returnAdjustmentType = returnItemTypeMap.get(orderItem.get("orderAdjustmentTypeId"))/> - <#assign adjustmentType = orderItem.getRelatedOne("OrderAdjustmentType")/> - <#assign description = orderItem.description?default(adjustmentType.get("description",locale))/> - - - - - - - - - - - - <#else> - <#-- this is an order item --> - <#assign returnItemType = (returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey")))?if_exists/> - - - - - - <#-- need some order item information --> - <#assign orderHeader = orderItem.getRelatedOne("OrderHeader")> - <#assign itemCount = orderItem.quantity> - <#assign itemPrice = orderItem.unitPrice> - <#-- end of order item information --> - - - - - - - - - - - - - - <#assign rowCount = rowCount + 1> - - - - - - - - - <#if orderHeaderAdjustments?has_content> - - - - - - - - - <#list orderHeaderAdjustments as adj> - <#assign returnAdjustmentType = returnItemTypeMap.get(adj.get("orderAdjustmentTypeId"))/> - <#assign adjustmentType = adj.getRelatedOne("OrderAdjustmentType")/> - <#assign description = adj.description?default(adjustmentType.get("description",locale))/> - - - - - - - - - - - - - <#assign rowCount = rowCount + 1> - - <#else> - - - - <#assign manualAdjRowNum = rowCount/> - - - - - - - - - class="alternate-row"> + + - + - <#assign rowCount = rowCount + 1> + <#else> + <#-- this is an order item --> + <#assign returnItemType = (returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey")))?if_exists/> + + + + - - - - - - - <#else> - - - - - -

${uiLabelMap.OrderReturnFromOrder} #${orderId}

- ${uiLabelMap.CommonSelectAll}  - -
- - - - - - - - - - - - - -
${uiLabelMap.OrderOrderTotal}<@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyCredited}<@ofbizCurrency amount=orh.getOrderReturnedCreditTotalBd() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyRefunded}<@ofbizCurrency amount=orh.getOrderReturnedRefundTotalBd() isoCode=orh.getCurrency()/>
-
${uiLabelMap.CommonDescription}
${uiLabelMap.OrderOrderQty}
${uiLabelMap.OrderReturnQty}
${uiLabelMap.OrderUnitPrice}
${uiLabelMap.OrderReturnPrice}*
${uiLabelMap.OrderReturnReason}
${uiLabelMap.OrderReturnType}
${uiLabelMap.OrderItemStatus}
${uiLabelMap.OrderOrderInclude}?

- ${description?default("N/A")} - - ${orderItem.amount?string("##0.00")} - <#--value="${orderItem.amount?string("##0.00")}"/>--> - - - - -
-
- <#if orderItem.productId?exists> - ${orderItem.productId}:  - - - ${orderItem.itemDescription} -
-
-
${orderItem.quantity?string.number}
-
- - -
<@ofbizCurrency amount=orderItem.unitPrice isoCode=orderHeader.currencyUom/>
-
- - - - - - - - - -

${uiLabelMap.OrderReturnAdjustments} #${orderId}


${uiLabelMap.CommonDescription}
${uiLabelMap.CommonAmount}
${uiLabelMap.OrderReturnType}
${uiLabelMap.OrderOrderInclude}?

-
- ${description?default("N/A")} -
-
- value="${adj.amount?string("##0.00")}"/> - - - - -
${uiLabelMap.OrderNoOrderAdjustments}

-

${uiLabelMap.OrderReturnManualAdjustment} #${orderId}

- + + +
+ ${description?default("N/A")} - + ${orderItem.amount?string("##0.00")} + <#--value="${orderItem.amount?string("##0.00")}"/>--> - <#list returnTypes as type>
- ${uiLabelMap.OrderReturnSelectedItems} -
${uiLabelMap.OrderReturnNoReturnableItems} #${orderId}
*${uiLabelMap.OrderReturnPriceNotIncludeTax}
+ <#-- need some order item information --> + <#assign orderHeader = orderItem.getRelatedOne("OrderHeader")> + <#assign itemCount = orderItem.quantity> + <#assign itemPrice = orderItem.unitPrice> + <#-- end of order item information --> + class="alternate-row"> + +
+ <#if orderItem.productId?exists> + ${orderItem.productId}  + + + ${orderItem.itemDescription} +
+ + +
${orderItem.quantity?string.number}
+ + + + + +
<@ofbizCurrency amount=orderItem.unitPrice isoCode=orderHeader.currencyUom/>
+ + + + + + + + + + + + + + + + + + + <#assign rowCount = rowCount + 1> + <#-- toggle the row color --> + <#assign alt_row = !alt_row> + +
+ +

${uiLabelMap.OrderReturnAdjustments} #${orderId}

+ +
+ <#if orderHeaderAdjustments?has_content> + + ${uiLabelMap.CommonDescription} + ${uiLabelMap.CommonAmount} + ${uiLabelMap.OrderReturnType} + ${uiLabelMap.OrderOrderInclude}? + + <#list orderHeaderAdjustments as adj> + <#assign returnAdjustmentType = returnItemTypeMap.get(adj.get("orderAdjustmentTypeId"))/> + <#assign adjustmentType = adj.getRelatedOne("OrderAdjustmentType")/> + <#assign description = adj.description?default(adjustmentType.get("description",locale))/> + + + + + + + +
+ ${description?default("N/A")} +
+ + + value="${adj.amount?string("##0.00")}"/> + + + + + + + + + <#assign rowCount = rowCount + 1> + + <#else> + ${uiLabelMap.OrderNoOrderAdjustments} + + + <#assign manualAdjRowNum = rowCount/> + + +
+ + +

${uiLabelMap.OrderReturnManualAdjustment} #${orderId}

+ + + + + + + + + + + + + + + + + <#assign rowCount = rowCount + 1> + + + + + + ${uiLabelMap.OrderReturnSelectedItems} + + + <#else> + + ${uiLabelMap.OrderReturnNoReturnableItems} #${orderId} + + + + *${uiLabelMap.OrderReturnPriceNotIncludeTax} +   + + \ No newline at end of file diff --git a/applications/order/webapp/ordermgr/return/returnItems.ftl b/applications/order/webapp/ordermgr/return/returnItems.ftl index c218a902b3..7a47168093 100644 --- a/applications/order/webapp/ordermgr/return/returnItems.ftl +++ b/applications/order/webapp/ordermgr/return/returnItems.ftl @@ -24,24 +24,24 @@ under the License. - +   - ${returnAdjustment.get("description",locale)?default("N/A")} + ${returnAdjustment.get("description",locale)?default("N/A")} <#if returnAdjustment.comments?has_content>: ${returnAdjustment.comments} <#if (adjEditable)> - - + + <#else> - <@ofbizCurrency amount=returnAdjustment.amount?default(0) isoCode=returnHeader.currencyUomId/> + <@ofbizCurrency amount=returnAdjustment.amount?default(0) isoCode=returnHeader.currencyUomId/>   -
+
<#if (!adjEditable)> ${adjReturnType.description?default("${uiLabelMap.CommonNA}")} <#else> - <#if (adjReturnType?has_content)> @@ -65,9 +65,14 @@ under the License. -
- ${uiLabelMap.OrderReturnHeader} - ${uiLabelMap.OrderReturnItems} +<#assign selected = tabButtonItem?default("void")> + +
+ +
PDF @@ -76,274 +81,285 @@ under the License.
+
+
+
    +
  • ${uiLabelMap.PageTitleReturnItems}
  • +
+
+
+
<#if !requestParameters.orderId?exists> - - <#assign readOnly = (returnHeader.statusId != "RETURN_REQUESTED")> - - - - <#-- information about orders and amount refunded/credited on past returns --> - <#if orh?exists> - - - - - - - - - - - - - - <#if (readOnly)> - - - - - - <#assign returnTotal = 0.0> - <#assign rowCount = 0> - - - <#if returnItems?has_content> - <#list returnItems as item> - <#assign orderItem = item.getRelatedOne("OrderItem")?if_exists> - <#assign orderHeader = item.getRelatedOne("OrderHeader")?if_exists> - <#assign returnReason = item.getRelatedOne("ReturnReason")?if_exists> - <#assign returnType = item.getRelatedOne("ReturnType")?if_exists> - <#assign status = item.getRelatedOne("InventoryStatusItem")?if_exists> - <#if (item.get("returnQuantity")?exists && item.get("returnPrice")?exists)> - <#assign returnTotal = returnTotal + item.get("returnQuantity") * item.get("returnPrice") > - <#assign returnItemSubTotal = item.get("returnQuantity") * item.get("returnPrice") > - <#else> - <#assign returnItemSubTotal = null > <#-- otherwise the last item's might carry over --> - - - - - - - - - - - - - - - - + + + + + <#-- these are general return adjustments not associated with a particular item (itemSeqId = "_NA_" --> + <#if (returnAdjustments?has_content)> + <#list returnAdjustments as returnAdjustment> + <#assign adjEditable = !readOnly> <#-- they are editable if the rest of the return items are --> + <@displayReturnAdjustment returnAdjustment=returnAdjustment adjEditable=adjEditable/> + + + <#-- show the return total --> + + + + + + + <#if (!readOnly) && (rowCount > 0)> + + + + + + + + + +

${uiLabelMap.OrderItemsReturned} ${uiLabelMap.CommonIn} ${uiLabelMap.OrderOrderReturn} #${returnId}

- - - - - - - - - - - - - -
${uiLabelMap.OrderOrderTotal}<@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyCredited}<@ofbizCurrency amount=orh.getReturnedCreditTotalWithBillingAccountBd() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyRefunded}<@ofbizCurrency amount=orh.getReturnedRefundTotalWithBillingAccountBd() isoCode=orh.getCurrency()/>
-

${uiLabelMap.OrderOrderItems}
${uiLabelMap.ProductProduct}
${uiLabelMap.CommonDescription}
${uiLabelMap.OrderQuantity}
${uiLabelMap.OrderPrice}
${uiLabelMap.OrderSubTotal}
${uiLabelMap.OrderReturnReason}
${uiLabelMap.OrderItemStatus}
${uiLabelMap.CommonType}
${uiLabelMap.OrderReturnResponse}
 

${item.orderId} - ${item.orderItemSeqId?default("N/A")}
- <#if item.get("productId")?exists> - ${item.productId} - <#else> - N/A -
- <#if readOnly> - ${item.description?default("N/A")} - <#else> - - -
- <#if readOnly> - ${item.returnQuantity?string.number} - <#else> - - - <#if item.receivedQuantity?exists> (${item.receivedQuantity} received) -
- <#if readOnly> - <@ofbizCurrency amount=item.returnPrice isoCode=orderHeader.currencyUom/> - <#else> - - -
- <#if returnItemSubTotal?exists><@ofbizCurrency amount=returnItemSubTotal isoCode=orderHeader.currencyUom/> -
- <#if readOnly> - ${returnReason.get("description",locale)?default("N/A")} - <#else> - - -
- <#if readOnly> - <#if status?has_content> - ${status.get("description",locale)} - <#else> - N/A - - <#else> - + + <#assign readOnly = (returnHeader.statusId != "RETURN_REQUESTED")> + + + + <#-- information about orders and amount refunded/credited on past returns --> + <#if orh?exists> + - - + + + + + + + + + + <#if (readOnly)> - ${returnType.get("description",locale)?default("N/A")} - <#else> - - - <#if (readOnly)> - + + + + <#assign returnTotal = 0.0> + <#assign rowCount = 0> + + + <#if returnItems?has_content> + <#assign alt_row = false> + <#list returnItems as item> + <#assign orderItem = item.getRelatedOne("OrderItem")?if_exists> + <#assign orderHeader = item.getRelatedOne("OrderHeader")?if_exists> + <#assign returnReason = item.getRelatedOne("ReturnReason")?if_exists> + <#assign returnType = item.getRelatedOne("ReturnType")?if_exists> + <#assign status = item.getRelatedOne("InventoryStatusItem")?if_exists> + <#if (item.get("returnQuantity")?exists && item.get("returnPrice")?exists)> + <#assign returnTotal = returnTotal + item.get("returnQuantity") * item.get("returnPrice") > + <#assign returnItemSubTotal = item.get("returnQuantity") * item.get("returnPrice") > + <#else> + <#assign returnItemSubTotal = null > <#-- otherwise the last item's might carry over --> - <#else> -
${uiLabelMap.CommonNone}
- - <#else> -
${uiLabelMap.CommonNA}
- - - - <#if returnHeader.statusId == "RETURN_REQUESTED"> - - - - <#assign rowCount = rowCount + 1> - <#assign returnItemAdjustments = item.getRelated("ReturnAdjustment")> - <#if (returnItemAdjustments?has_content)> - <#list returnItemAdjustments as returnItemAdjustment> - <@displayReturnAdjustment returnAdjustment=returnItemAdjustment adjEditable=false/> <#-- adjustments of return items should never be editable --> - - - -<#else> - - - - - -<#-- these are general return adjustments not associated with a particular item (itemSeqId = "_NA_" --> -<#if (returnAdjustments?has_content)> - <#list returnAdjustments as returnAdjustment> - <#assign adjEditable = !readOnly> <#-- they are editable if the rest of the return items are --> - <@displayReturnAdjustment returnAdjustment=returnAdjustment adjEditable=adjEditable/> - - - <#-- show the return total --> - - - - - - - <#if (!readOnly) && (rowCount > 0)> - - - - - - - - -

${uiLabelMap.OrderOrderReturn} #${returnId}

+ + + + + + + + + + + + + +
${uiLabelMap.OrderOrderTotal}<@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyCredited}<@ofbizCurrency amount=orh.getReturnedCreditTotalWithBillingAccountBd() isoCode=orh.getCurrency()/>
${uiLabelMap.OrderAmountAlreadyRefunded}<@ofbizCurrency amount=orh.getReturnedRefundTotalWithBillingAccountBd() isoCode=orh.getCurrency()/>
+
+

${uiLabelMap.OrderOrderItems}${uiLabelMap.ProductProduct}${uiLabelMap.CommonDescription}${uiLabelMap.OrderQuantity}${uiLabelMap.OrderPrice}${uiLabelMap.OrderSubTotal}${uiLabelMap.OrderReturnReason}${uiLabelMap.OrderItemStatus}${uiLabelMap.CommonType} - <#if returnHeader.statusId == "RETURN_COMPLETED"> - <#assign itemResp = item.getRelatedOne("ReturnItemResponse")?if_exists> - <#if itemResp?has_content> - <#if itemResp.paymentId?has_content> -
${uiLabelMap.AccountingPayment} #${itemResp.paymentId}
- <#elseif itemResp.replacementOrderId?has_content> -
${uiLabelMap.OrderOrder} #${itemResp.replacementOrderId}
- <#elseif itemResp.billingAccountId?has_content> -
${uiLabelMap.AccountingAccountId} #${itemResp.billingAccountId}
+
${uiLabelMap.OrderReturnResponse} 
${uiLabelMap.CommonRemove} - <#else> -  
${uiLabelMap.OrderNoReturnItemsFound}


 ${uiLabelMap.OrderReturnTotal}<@ofbizCurrency amount=returnTotal isoCode=returnHeader.currencyUomId/>
-<#if (returnHeader.statusId == "RETURN_REQUESTED") && (rowCount > 0)> -
-
- - -
-
- - -<#if returnHeader.statusId == "RETURN_REQUESTED"> -
-
- - - - <#if partyOrders?has_content> - - - - class="alternate-row"> + + + + + + + + + + + + + + + <#if (readOnly)> + + + <#if returnHeader.statusId == "RETURN_REQUESTED"> + + + + <#assign rowCount = rowCount + 1> + <#assign returnItemAdjustments = item.getRelated("ReturnAdjustment")> + <#if (returnItemAdjustments?has_content)> + <#list returnItemAdjustments as returnItemAdjustment> + <@displayReturnAdjustment returnAdjustment=returnItemAdjustment adjEditable=false/> <#-- adjustments of return items should never be editable --> + + + <#-- toggle the row color --> + <#assign alt_row = !alt_row> - - - - - <#else> - - - - - - - - - - - - - - -

${uiLabelMap.OrderReturnItems}

${uiLabelMap.OrderOrderId}:
  -
${item.orderId} - ${item.orderItemSeqId?default("N/A")}
+ <#if item.get("productId")?exists> + ${item.productId} + <#else> + N/A +
+ <#if readOnly> + ${item.description?default("N/A")} + <#else> + + +
+ <#if readOnly> + ${item.returnQuantity?string.number} + <#else> + + + <#if item.receivedQuantity?exists> (${item.receivedQuantity} received) +
+ <#if readOnly> + <@ofbizCurrency amount=item.returnPrice isoCode=orderHeader.currencyUom/> + <#else> + + +
+ <#if returnItemSubTotal?exists><@ofbizCurrency amount=returnItemSubTotal isoCode=orderHeader.currencyUom/> +
+ <#if readOnly> + ${returnReason.get("description",locale)?default("N/A")} + <#else> + + +
+ <#if readOnly> + <#if status?has_content> + ${status.get("description",locale)} + <#else> + N/A + + <#else> + + +
+ <#if (readOnly)> + ${returnType.get("description",locale)?default("N/A")} + <#else> + +
+ <#if returnHeader.statusId == "RETURN_COMPLETED"> + <#assign itemResp = item.getRelatedOne("ReturnItemResponse")?if_exists> + <#if itemResp?has_content> + <#if itemResp.paymentId?has_content> +
${uiLabelMap.AccountingPayment} #${itemResp.paymentId}
+ <#elseif itemResp.replacementOrderId?has_content> +
${uiLabelMap.OrderOrder} #${itemResp.replacementOrderId}
+ <#elseif itemResp.billingAccountId?has_content> +
${uiLabelMap.AccountingAccountId} #${itemResp.billingAccountId}
+ + <#else> +
${uiLabelMap.CommonNone}
+ + <#else> +
${uiLabelMap.CommonNA}
+ +
${uiLabelMap.CommonRemove} + <#else> +  
 (${uiLabelMap.OrderReturnLoadItems})
${uiLabelMap.OrderNoOrderFoundForParty}: ${returnHeader.fromPartyId?default('[null]')}
${uiLabelMap.OrderOrderId}:
  - -
 (${uiLabelMap.OrderReturnLoadItems})
  - ${uiLabelMap.OrderReturnLoadItems} -
-
- + <#else> +
${uiLabelMap.OrderNoReturnItemsFound}


 ${uiLabelMap.OrderReturnTotal}<@ofbizCurrency amount=returnTotal isoCode=returnHeader.currencyUomId/>

+ <#if (returnHeader.statusId == "RETURN_REQUESTED") && (rowCount > 0)> +
+
+ + +
+
+ + + <#if returnHeader.statusId == "RETURN_REQUESTED"> +
+
+ + + + <#if partyOrders?has_content> + + + + + + + <#else> + + + + + + + + + + + + + + +

${uiLabelMap.OrderReturnItems}

${uiLabelMap.OrderOrderId}  + +
${uiLabelMap.OrderReturnLoadItems}
${uiLabelMap.OrderNoOrderFoundForParty}: ${returnHeader.fromPartyId?default('[null]')}
${uiLabelMap.OrderOrderId}
  + +
${uiLabelMap.OrderReturnLoadItems}
  + ${uiLabelMap.OrderReturnLoadItems} +
+
+ <#else> -<#assign selectAllFormName = "returnItems"/> -
- - - <#include "returnItemInc.ftl"/> -
- + <#assign selectAllFormName = "returnItems"/> +
+ + + <#include "returnItemInc.ftl"/> +
+
+
\ No newline at end of file diff --git a/applications/order/webapp/ordermgr/return/returnList.ftl b/applications/order/webapp/ordermgr/return/returnList.ftl index 17e74a624a..1f8f1a8677 100644 --- a/applications/order/webapp/ordermgr/return/returnList.ftl +++ b/applications/order/webapp/ordermgr/return/returnList.ftl @@ -21,15 +21,15 @@ under the License.
${uiLabelMap.OrderReturnCreate}

- - - - - - - +
${uiLabelMap.OrderReturnId} #
${uiLabelMap.FormFieldTitle_entryDate}
${uiLabelMap.PartyParty}
${uiLabelMap.FacilityFacility}
${uiLabelMap.CommonStatus}
+ + + + + + - + <#list returnList as returnHeader> <#assign statusItem = returnHeader.getRelatedOne("StatusItem")> <#if returnHeader.destinationFacilityId?exists> @@ -42,11 +42,11 @@ under the License. <#if returnHeader.fromPartyId?exists> ${returnHeader.fromPartyId} <#else> - ${uiLabelMap.CommonNA} + ${uiLabelMap.CommonNA} - - + + -
${uiLabelMap.OrderReturnId} #${uiLabelMap.FormFieldTitle_entryDate}${uiLabelMap.PartyParty}${uiLabelMap.FacilityFacility}${uiLabelMap.CommonStatus}


<#if facility?exists>${facility.facilityName?default(facility.facilityId)}<#else>${uiLabelMap.CommonNone}
${statusItem.get("description",locale)}
<#if facility?exists>${facility.facilityName?default(facility.facilityId)}<#else>${uiLabelMap.CommonNone}${statusItem.get("description",locale)}
+ \ No newline at end of file diff --git a/applications/order/widget/ordermgr/OrderReturnScreens.xml b/applications/order/widget/ordermgr/OrderReturnScreens.xml index f2d35e1a15..1300d88f43 100644 --- a/applications/order/widget/ordermgr/OrderReturnScreens.xml +++ b/applications/order/widget/ordermgr/OrderReturnScreens.xml @@ -44,14 +44,24 @@ under the License. - - - - - - - - + + + + + + +
+ + + + + + + +
+
+
@@ -67,11 +77,24 @@ under the License. - - - - - + + + + + + +
+ + + + + + + +
+
+
@@ -82,16 +105,21 @@ under the License. +