Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.creditProposalItem.attributes['proposalType'] === 'Total Exposure <= IDR 15 Bn') {
- if (this.creditProposalItem.attributes['convenant'].standardCovenant.length !== 0) {
- for (let i = 0; i < this.creditProposalItem.attributes['convenant'].standardCovenant.length; i++) {
- this.statusValue[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].status;
- this.deviation[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].deviation;
- this.justification[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].justification;
- }
- } else {
- for (let i = 0; i <= this.standardDataGrid.length; i++) {
- this.statusValue[i] = 'Applied';
- }
- }
- } else if (this.creditProposalItem.attributes['proposalType'] === 'Total Exposure > IDR 15 Bn') {
- if (this.creditProposalItem.attributes['convenant'].standardDataGridAbove.length !== 0) {
- for (let i = 0; i < this.creditProposalItem.attributes['convenant'].standardDataGridAbove.length; i++) {
- this.statusValue[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].status;
- this.deviation[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].deviation;
- this.justification[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].justification;
- }
- } else {
- for (let i = 0; i <= this.standardDataGridAbove.length; i++) {
- this.statusValue[i] = 'Applied';
- }
- }
- } else {
- console.log('Back to Back');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement