MIFOSX-1265 - added External ID on UI for Savings Account and added validation for duplicate External ID

This commit is contained in:
Binny G Sreevas 2014-08-12 10:47:48 +05:30
parent 8ef42cc719
commit 017afd8b71
5 changed files with 21 additions and 0 deletions

View File

@ -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.",

View File

@ -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;

View File

@ -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
}}&nbsp;<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"/>

View File

@ -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
}}&nbsp;<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"/>

View File

@ -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">