svn commit: r935032 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r935032 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

eckardjf
Author: eckardjf
Date: Fri Apr 16 18:27:05 2010
New Revision: 935032

URL: http://svn.apache.org/viewvc?rev=935032&view=rev
Log:
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>&nbsp;${orderHeaderAdjustment.comments?if_exists}
-                            ${orderHeaderAdjustment.get("description")?if_exists} :
-                        </td>
-                        <td align="right" nowrap="nowrap">
-                            <@ofbizCurrency amount=adjustmentAmount isoCode=currencyUomId/>
-                        </td>
-                        <td>&nbsp;</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>&nbsp;</td>
+                        </tr>
                     </#if>
                 </#list>
                 <#-- subtotal -->