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:35:21 UTC

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

Author: ashish
Date: Thu Jun 14 18:35:21 2012
New Revision: 1350365

URL: http://svn.apache.org/viewvc?rev=1350365&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/release10.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml

Modified: ofbiz/branches/release10.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml?rev=1350365&r1=1350364&r2=1350365&view=diff
==============================================================================
--- ofbiz/branches/release10.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml (original)
+++ ofbiz/branches/release10.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml Thu Jun 14 18:35:21 2012
@@ -65,7 +65,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>