Author: ashish
Date: Thu Jun 14 18:32:59 2012
New Revision: 1350363
URL:
http://svn.apache.org/viewvc?rev=1350363&view=revLog:
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/trunk/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml?rev=1350363&r1=1350362&r2=1350363&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml Thu Jun 14 18:32:59 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>