svn commit: r1835964 - /ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1835964 - /ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy

Deepak Dixit-5
Author: deepak
Date: Sun Jul 15 10:47:55 2018
New Revision: 1835964

URL: http://svn.apache.org/viewvc?rev=1835964&view=rev
Log:
Fixed: Not able to delete PartyRate
(OFBIZ-10483)

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy?rev=1835964&r1=1835963&r2=1835964&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/rate/RateServices.groovy Sun Jul 15 10:47:55 2018
@@ -119,9 +119,11 @@ def expirePartyRate() {
         lookedUpValue.store()
 
         //expire related rate amount
+        if (parameters.rateAmountFromDate) {
         parameters.fromDate = parameters.rateAmountFromDate;
         result = run service: 'expireRateAmount', with: parameters
         if (ServiceUtil.isError(result)) return result
+        }
     }
     return success()
 }