Merge branch 'develop' of https://github.com/Kitzanos/GEPAFIN-BE into develop
This commit is contained in:
@@ -389,5 +389,6 @@ public class GepafinConstant {
|
|||||||
public static final String NON_EMPTY_TABLES="nonEmptyTables";
|
public static final String NON_EMPTY_TABLES="nonEmptyTables";
|
||||||
public static final String VALIDATION_IN_TABLE = "validation.table.message";
|
public static final String VALIDATION_IN_TABLE = "validation.table.message";
|
||||||
public static final String CALL_EXPIRED="call.expired";
|
public static final String CALL_EXPIRED="call.expired";
|
||||||
|
public static final String AMOUNT_REQUEST_SHOULD_GREATED_THEN_ZERO = "amount.request.should.greated.then.zero";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1260,6 +1260,9 @@ public class ApplicationDao {
|
|||||||
if (Boolean.FALSE.equals(ApplicationStatusTypeEnum.DRAFT.getValue().equals(applicationEntity.getStatus()))) {
|
if (Boolean.FALSE.equals(ApplicationStatusTypeEnum.DRAFT.getValue().equals(applicationEntity.getStatus()))) {
|
||||||
throw new CustomValidationException(Status.BAD_REQUEST, Translator.toLocale(GepafinConstant.APPLICATION_NOT_IN_DRAFT_STATUS));
|
throw new CustomValidationException(Status.BAD_REQUEST, Translator.toLocale(GepafinConstant.APPLICATION_NOT_IN_DRAFT_STATUS));
|
||||||
}
|
}
|
||||||
|
if (applicationEntity.getAmountRequested() == null || applicationEntity.getAmountRequested().compareTo(BigDecimal.ZERO) <= 0 ) {
|
||||||
|
throw new CustomValidationException(Status.BAD_REQUEST, Translator.toLocale(GepafinConstant.AMOUNT_REQUEST_SHOULD_GREATED_THEN_ZERO));
|
||||||
|
}
|
||||||
List<FlowEdgesEntity> flowEdgesList = flowEdgesRepository.findByCallId(applicationEntity.getCall().getId());
|
List<FlowEdgesEntity> flowEdgesList = flowEdgesRepository.findByCallId(applicationEntity.getCall().getId());
|
||||||
Long totalSteps = flowFormDao.calculateTotalSteps(flowEdgesList);
|
Long totalSteps = flowFormDao.calculateTotalSteps(flowEdgesList);
|
||||||
Integer completedSteps = flowFormDao.getCompletedSteps(applicationEntity, true);
|
Integer completedSteps = flowFormDao.getCompletedSteps(applicationEntity, true);
|
||||||
|
|||||||
@@ -352,3 +352,4 @@ user.action.fetched.successfully = User action details fetched successfully.
|
|||||||
action.context.labels.fetched.successfully = Action Context Labels Fetched Successfully.
|
action.context.labels.fetched.successfully = Action Context Labels Fetched Successfully.
|
||||||
amount.accepted.required=Amount accepted is required while approving the application.
|
amount.accepted.required=Amount accepted is required while approving the application.
|
||||||
call.expired=Call has been expired.
|
call.expired=Call has been expired.
|
||||||
|
amount.request.should.greated.then.zero=Requested amount should not be empty and should be greater than zero.
|
||||||
|
|||||||
@@ -341,5 +341,6 @@ user.with.company.not.found = Utente con azienda non trovato per utente o aziend
|
|||||||
user.action.fetched.successfully = Dettagli sull'azione dell'utente recuperati correttamente.
|
user.action.fetched.successfully = Dettagli sull'azione dell'utente recuperati correttamente.
|
||||||
action.context.labels.fetched.successfully = Etichette del contesto dell'azione recuperate correttamente.
|
action.context.labels.fetched.successfully = Etichette del contesto dell'azione recuperate correttamente.
|
||||||
amount.accepted.required=L'importo accettato <20> obbligatorio durante l'approvazione della domanda.
|
amount.accepted.required=L'importo accettato <20> obbligatorio durante l'approvazione della domanda.
|
||||||
validation.table.message=I dati per il campo {0} non sono presenti.
|
call.expired=La chiamata <20> scaduta.
|
||||||
|
amount.request.should.greated.then.zero=L'importo richiesto non deve essere vuoto e deve essere maggiore di zero.
|
||||||
call.expired=La chiamata <20> scaduta.
|
call.expired=La chiamata <20> scaduta.
|
||||||
|
|||||||
Reference in New Issue
Block a user