Author: ashish
Date: Thu Jun 14 18:37:17 2012
New Revision: 1350367
URL:
http://svn.apache.org/viewvc?rev=1350367&view=revLog:
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=adminThanks Deepak!
Modified:
ofbiz/branches/release11.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
Modified: ofbiz/branches/release11.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml?rev=1350367&r1=1350366&r2=1350367&view=diff==============================================================================
--- ofbiz/branches/release11.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml (original)
+++ ofbiz/branches/release11.04/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml Thu Jun 14 18:37:17 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>