fix(investment): maturity date mandatory on script master

This commit is contained in:
2026-10-16 12:11:49 +05:30
parent 8ed8f92b00
commit e1b33827ea
2 changed files with 3 additions and 3 deletions
@@ -286,7 +286,7 @@
><mifosx-date-ddmmyyyy [(ngModel)]="scriptForm.issueDate"></mifosx-date-ddmmyyyy
></label>
<label class="inv-form-field"
><span>Redum / Mat Date</span
><span>{{ scriptIsDebtSecurity ? '* ' : '' }}Redum / Mat Date</span
><mifosx-date-ddmmyyyy [(ngModel)]="scriptForm.maturityDate"></mifosx-date-ddmmyyyy
></label>
<label class="inv-form-field"
@@ -294,8 +294,8 @@ export class InvestmentMastersComponent implements OnInit {
this.toast('Enter Bond Type, Script Desc and GL A/c No.');
return;
}
if (this.scriptIsDebtSecurity && (!f.isin || f.couponRate == null || !f.issueDate)) {
this.toast('Enter ISIN, Int Rate and Issue Date for this security.');
if (this.scriptIsDebtSecurity && (!f.isin || f.couponRate == null || !f.issueDate || !f.maturityDate)) {
this.toast('Enter ISIN, Int Rate, Issue Date and Maturity Date for this security.');
return;
}
const body = {