fix(investment): maturity date mandatory on script master
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user