You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2016/05/21 10:25:07 UTC

svn commit: r1744889 - /ofbiz/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml

Author: ashish
Date: Sat May 21 10:25:07 2016
New Revision: 1744889

URL: http://svn.apache.org/viewvc?rev=1744889&view=rev
Log:
Applied fix from trunk r1744888.
===========================================================
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/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml

Modified: ofbiz/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml?rev=1744889&r1=1744888&r2=1744889&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml (original)
+++ ofbiz/branches/release15.12/applications/accounting/widget/ReportFinancialSummaryForms.xml Sat May 21 10:25:07 2016
@@ -520,9 +520,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>