mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
MIFOSX-1265 - added External ID on UI for Savings Account and added validation for duplicate External ID
This commit is contained in:
parent
8ef42cc719
commit
017afd8b71
@ -1629,6 +1629,7 @@
|
||||
"validation.msg.savingsaccount.activationDate.cannot.be.blank": "Activation date is mandatory when setting account as `Active`.",
|
||||
"validation.msg.savingsaccount.accountNo.cannot.be.blank": "Account no. is mandatory.",
|
||||
"error.msg.savingsaccount.duplicate.accountNo": "Savings account with account no. `{{params[0].value}}` already exists.",
|
||||
"error.msg.savingsaccount.duplicate.externalId": "A savings account with external id `{{params[0].value}}` already exists.",
|
||||
"validation.msg.savingsaccount.productId.not.greater.than.zero": "Savings product is mandatory.",
|
||||
"validation.msg.savingsaccount.active.cannot.be.blank": "Active must be set to `true` or `false`.",
|
||||
"validation.msg.savingsaccount.nominalAnnualInterestRate.cannot.be.blank": "Nominal annual interest rate is mandatory.",
|
||||
|
||||
@ -39,6 +39,7 @@
|
||||
var submittedOnDate = dateFilter(data.timeline.submittedOnDate, scope.df);
|
||||
scope.formData.submittedOnDate = new Date(submittedOnDate);
|
||||
}
|
||||
scope.formData.externalId = data.externalId;
|
||||
scope.fieldOfficers = data.fieldOfficerOptions;
|
||||
scope.formData.nominalAnnualInterestRate = data.nominalAnnualInterestRate;
|
||||
scope.formData.minRequiredOpeningBalance = data.minRequiredOpeningBalance;
|
||||
|
||||
@ -42,6 +42,14 @@
|
||||
<option value="">{{'label.selectfieldofficer' | translate}}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="width14">
|
||||
<label ng-show="formData.productId" class="control-label">{{ 'label.input.externalid' | translate
|
||||
}} <span class="required">*</span></label>
|
||||
</td>
|
||||
<td class="width36 paddedbottom10">
|
||||
<input ng-show="formData.productId" id="externalId" ng-model="formData.externalId" class="form-control"/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<hr data-ng-show="formData.productId"/>
|
||||
|
||||
@ -44,6 +44,13 @@
|
||||
<option value="">{{'label.selectfieldofficer' | translate}}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="width14">
|
||||
<label ng-show="formData.productId" class="control-label">{{ 'label.input.externalid' | translate
|
||||
}} <span class="required">*</span></label>
|
||||
</td>
|
||||
<td class="width36 paddedbottom10">
|
||||
<input ng-show="formData.productId" id="externalId" ng-model="formData.externalId" class="form-control"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr data-ng-show="formData.productId"/>
|
||||
|
||||
@ -90,6 +90,10 @@
|
||||
<td>{{'label.heading.currency' | translate}}</td>
|
||||
<td>{{savingaccountdetails.currency.name}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{'label.heading.externalid' | translate}}</td>
|
||||
<td>{{savingaccountdetails.externalId}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6 col-md-6">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user