Author: pranayp
Date: Sat Apr 16 12:34:29 2016
New Revision: 1739448

URL: http://svn.apache.org/viewvc?rev=1739448&view=rev
Log:
[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/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml

Modified: 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml?rev=1739448&r1=1739447&r2=1739448&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
 (original)
+++ 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
 Sat Apr 16 12:34:29 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"/>
 


Reply via email to