Advertisement
HilmiMubarok

ngoninitdeviation

Oct 6th, 2022
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (this.creditProposalItem.attributes['proposalType'] === 'Total Exposure <= IDR 15 Bn') {
  2.       if (this.creditProposalItem.attributes['convenant'].standardCovenant.length !== 0) {
  3.         for (let i = 0; i < this.creditProposalItem.attributes['convenant'].standardCovenant.length; i++) {
  4.           this.statusValue[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].status;
  5.           this.deviation[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].deviation;
  6.           this.justification[i] = this.creditProposalItem.attributes['convenant'].standardCovenant[i].justification;
  7.         }
  8.       } else {
  9.         for (let i = 0; i <= this.standardDataGrid.length; i++) {
  10.           this.statusValue[i] = 'Applied';
  11.         }
  12.       }
  13.     } else if (this.creditProposalItem.attributes['proposalType'] === 'Total Exposure > IDR 15 Bn') {
  14.       if (this.creditProposalItem.attributes['convenant'].standardDataGridAbove.length !== 0) {
  15.         for (let i = 0; i < this.creditProposalItem.attributes['convenant'].standardDataGridAbove.length; i++) {
  16.           this.statusValue[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].status;
  17.           this.deviation[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].deviation;
  18.           this.justification[i] = this.creditProposalItem.attributes['convenant'].standardDataGridAbove[i].justification;
  19.         }
  20.       } else {
  21.         for (let i = 0; i <= this.standardDataGridAbove.length; i++) {
  22.           this.statusValue[i] = 'Applied';
  23.         }
  24.       }
  25.     } else {
  26.       console.log('Back to Back');
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement