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 2012/06/14 20:36:20 UTC

svn commit: r1350366 - /ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml

Author: ashish
Date: Thu Jun 14 18:36:18 2012
New Revision: 1350366

URL: http://svn.apache.org/viewvc?rev=1350366&view=rev
Log:
Applied bug fix from trunk r1350363.
Applied bug fix from jira issue - OFBIZ-4918 - Not able to add party rate.
User does not able to add party rate via Rate screen.
https://demo-trunk.ofbiz.apache.org/partymgr/control/EditPartyRates?partyId=admin
Thanks Deepak!

Modified:
    ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml

Modified: ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml?rev=1350366&r1=1350365&r2=1350366&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml (original)
+++ ofbiz/branches/release12.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml Thu Jun 14 18:36:18 2012
@@ -67,7 +67,7 @@ under the License.
         <make-value entity-name="RateAmount" value-field="newEntity"/>
         <set-pk-fields map="parameters" value-field="newEntity"/>
         <set-nonpk-fields map="parameters" value-field="newEntity"/>
-        <set field="newEntity.fromDate" value="${groovy: org.ofbiz.base.util.UtilDateTime.getDayStart(nowTimestamp)}" type="Timestamp"/>
+        <if-empty field="newEntity.fromDate"><now-timestamp field="newEntity.fromDate"/></if-empty>
         <clear-field field="newEntity.thruDate"/>
         <create-value value-field="newEntity"/>
     </simple-method>