svn commit: r1744888 - /ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml

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

svn commit: r1744888 - /ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml

ashish-18
Author: ashish
Date: Sat May 21 10:23:34 2016
New Revision: 1744888

URL: http://svn.apache.org/viewvc?rev=1744888&view=rev
Log:
Applied patch from jira issue - OFBIZ-5288 - Show quantityUom in InventoryValuation Report.
Thanks Ravi for the contribution and thanks Pierre for creating the issue.

Modified:
    ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml

Modified: ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml?rev=1744888&r1=1744887&r2=1744888&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/ReportFinancialSummaryForms.xml Sat May 21 10:23:34 2016
@@ -543,9 +543,16 @@ under the License.
                 <select-field field-name="accountingQuantitySum"/>
             </entity-condition>
         </actions>
+        <row-actions>
+            <entity-one entity-name="Product" value-field="product">
+                <field-map field-name="productId"/>
+            </entity-one>
+            <get-related-one relation-name="QuantityUom" to-value-field="uom" value-field="product"/>
+            <set field="quantityUom" from-field="uom.abbreviation" default-value="${uom.uomId}"/>
+        </row-actions>
         <field name="productId"><display/></field>
         <field name="unitCost" widget-style="tabletextright"><display currency="${currencyUomId}" type="currency"/></field>
-        <field name="accountingQuantitySum" widget-style="tabletextright"><display/></field>
+        <field name="accountingQuantitySum" widget-style="tabletextright"><display description="${accountingQuantitySum} ${quantityUom}"/></field>
         <field name="value" widget-style="tabletextright"><display description="${accountingQuantitySum * unitCost}" currency="${currencyUomId}" type="currency"/></field>
     </form>