calendarId will be passed only when syn repay/disbur checkbox selected
This commit is contained in:
committed by
Vishwas Babu A J
parent
7f4c1b6ea5
commit
eb6e85eb99
+1
-1
@@ -194,7 +194,7 @@ public final class CalculateLoanScheduleQueryFromApiJsonHelper {
|
|||||||
|
|
||||||
final String calendarIdParameterName = "calendarId";
|
final String calendarIdParameterName = "calendarId";
|
||||||
//if disbursement is synced then must have a meeting (calendar)
|
//if disbursement is synced then must have a meeting (calendar)
|
||||||
if (meetingIdRequired || fromApiJsonHelper.parameterExists(syncDisbursementParameterName, element)) {
|
if (meetingIdRequired || fromApiJsonHelper.parameterExists(calendarIdParameterName, element)) {
|
||||||
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
||||||
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -314,7 +314,7 @@ public final class LoanApplicationCommandFromApiJsonHelper {
|
|||||||
|
|
||||||
final String calendarIdParameterName = "calendarId";
|
final String calendarIdParameterName = "calendarId";
|
||||||
//if disbursement is synced then must have a meeting (calendar)
|
//if disbursement is synced then must have a meeting (calendar)
|
||||||
if (meetingIdRequired || fromApiJsonHelper.parameterExists(syncDisbursementParameterName, element)) {
|
if (meetingIdRequired || fromApiJsonHelper.parameterExists(calendarIdParameterName, element)) {
|
||||||
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
||||||
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
||||||
}
|
}
|
||||||
@@ -616,7 +616,7 @@ public final class LoanApplicationCommandFromApiJsonHelper {
|
|||||||
|
|
||||||
final String calendarIdParameterName = "calendarId";
|
final String calendarIdParameterName = "calendarId";
|
||||||
//if disbursement is synced then must have a meeting (calendar)
|
//if disbursement is synced then must have a meeting (calendar)
|
||||||
if (meetingIdRequired || fromApiJsonHelper.parameterExists(syncDisbursementParameterName, element)) {
|
if (meetingIdRequired || fromApiJsonHelper.parameterExists(calendarIdParameterName, element)) {
|
||||||
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
final Long calendarId = fromApiJsonHelper.extractLongNamed(calendarIdParameterName, element);
|
||||||
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
baseDataValidator.reset().parameter(calendarIdParameterName).value(calendarId).notNull().integerGreaterThanZero();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user