Author: eckardjf
Date: Fri Apr 16 18:27:05 2010
New Revision: 935032
URL:
http://svn.apache.org/viewvc?rev=935032&view=revLog:
cleaned up order header adjustment display
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl?rev=935032&r1=935031&r2=935032&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl Fri Apr 16 18:27:05 2010
@@ -637,16 +637,17 @@ under the License.
<#assign adjustmentType = orderHeaderAdjustment.getRelatedOne("OrderAdjustmentType")>
<#assign adjustmentAmount = Static["org.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(orderHeaderAdjustment, orderSubTotal)>
<#if adjustmentAmount != 0>
- <tr>
- <td align="right" colspan="5">
- <span class="label">${adjustmentType.get("description",locale)}</span> ${orderHeaderAdjustment.comments?if_exists}
- ${orderHeaderAdjustment.get("description")?if_exists} :
- </td>
- <td align="right" nowrap="nowrap">
- <@ofbizCurrency amount=adjustmentAmount isoCode=currencyUomId/>
- </td>
- <td> </td>
- </tr>
+ <tr>
+ <td align="right" colspan="5">
+ <#if orderHeaderAdjustment.comments?has_content>${orderHeaderAdjustment.comments} - </#if>
+ <#if orderHeaderAdjustment.description?has_content>${orderHeaderAdjustment.description} - </#if>
+ <span class="label">${adjustmentType.get("description", locale)}</span>
+ </td>
+ <td align="right" nowrap="nowrap">
+ <@ofbizCurrency amount=adjustmentAmount isoCode=currencyUomId/>
+ </td>
+ <td> </td>
+ </tr>
</#if>
</#list>
<#-- subtotal -->