You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2021/03/28 11:32:23 UTC

[ofbiz-framework] branch release17.12 updated: Fixed: Invalid Currency symbol in income statement csv export (OFBIZ-12108)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 7fb8780  Fixed: Invalid Currency symbol in income statement csv export (OFBIZ-12108)
7fb8780 is described below

commit 7fb8780c97640dcdf4bb9c13853f5a820f44286f
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Sun Mar 28 13:25:25 2021 +0200

    Fixed: Invalid Currency symbol in income statement csv export (OFBIZ-12108)
    
    1. Navigate to URL: accounting/control/IncomeStatement?organizationPartyId=Company
    2. In income statement section click on export as csv button.
    3. The exported csv has correct balance but with invalid currency symbol.
    4. On screen USD $ symbol is shown and in csv some other currency symbol is shown.
    
    Thanks: Lalit Dashora for report, Praveen Sharma for the fix
---
 applications/accounting/widget/ReportFinancialSummaryScreens.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/applications/accounting/widget/ReportFinancialSummaryScreens.xml b/applications/accounting/widget/ReportFinancialSummaryScreens.xml
index 79ab50b..f34caba 100644
--- a/applications/accounting/widget/ReportFinancialSummaryScreens.xml
+++ b/applications/accounting/widget/ReportFinancialSummaryScreens.xml
@@ -891,6 +891,11 @@ under the License.
                 <set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
                 <set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
                 <set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
+                <service service-name="getPartyAccountingPreferences" result-map="result">
+                    <field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
+                </service>
+                <set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
+                <set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
                 <script location="component://accounting/groovyScripts/reports/IncomeStatement.groovy"/>
             </actions>
             <widgets>