Author: pranayp
Date: Sat Apr 16 12:37:26 2016
New Revision: 1739451
URL:
http://svn.apache.org/viewvc?rev=1739451&view=revLog:
Applied fix from trunk for revision: 1739448
===========================================================================
[OFBIZ-5938] Applied patch from the issue for bug fix - GlAccountOrganizations manually added using accounting forms do not appear on trial report because fromDate gets set to NULL. Thanks Christian Carlow for reporting the issue and Thanks Akash Jain for testing the patch and providing confirmation.
===========================================================================
Modified:
ofbiz/branches/release14.12/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
Modified: ofbiz/branches/release14.12/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml?rev=1739451&r1=1739450&r2=1739451&view=diff==============================================================================
--- ofbiz/branches/release14.12/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml (original)
+++ ofbiz/branches/release14.12/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml Sat Apr 16 12:37:26 2016
@@ -54,6 +54,9 @@ under the License.
<!-- ========= GlAccountOrganization methods ========= -->
<simple-method method-name="createGlAccountOrganization" short-description="Create GlAccountOrganization">
<make-value entity-name="GlAccountOrganization" value-field="newEntity"/>
+ <if-empty field="parameters.fromDate">
+ <now-timestamp field="parameters.fromDate"/>
+ </if-empty>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>