fixed MIFOSX-1655 issue with updating a loan with a charge
This commit is contained in:
Regular → Executable
+5
@@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
package org.mifosplatform.portfolio.common.domain;
|
package org.mifosplatform.portfolio.common.domain;
|
||||||
|
|
||||||
import org.joda.time.DateTimeConstants;
|
import org.joda.time.DateTimeConstants;
|
||||||
|
|||||||
+5
-1
@@ -4,7 +4,11 @@
|
|||||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
package org.mifosplatform.portfolio.common.domain;
|
package org.mifosplatform.portfolio.common.domain;
|
||||||
|
/**
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|||||||
Regular → Executable
+5
@@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
package org.mifosplatform.portfolio.common.domain;
|
package org.mifosplatform.portfolio.common.domain;
|
||||||
|
|
||||||
public enum NthDayType {
|
public enum NthDayType {
|
||||||
|
|||||||
Regular → Executable
+5
-2
@@ -389,10 +389,13 @@ public class LoanApplicationWritePlatformServiceJpaRepositoryImpl implements Loa
|
|||||||
* If there are any charges already present, which are now not
|
* If there are any charges already present, which are now not
|
||||||
* passed in as a part of the request, deem the charges as modified
|
* passed in as a part of the request, deem the charges as modified
|
||||||
**/
|
**/
|
||||||
if (!possiblyModifedLoanCharges.containsAll(existingCharges)) {
|
if(!possiblyModifedLoanCharges.isEmpty()){
|
||||||
isChargeModified = true;
|
if (!possiblyModifedLoanCharges.containsAll(existingCharges)) {
|
||||||
|
isChargeModified = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If any new charges are added or values of existing charges are
|
* If any new charges are added or values of existing charges are
|
||||||
* modified
|
* modified
|
||||||
|
|||||||
Reference in New Issue
Block a user