Merge branch 'master' of https://bitbucket.org/venbaittech/csr_webapp
This commit is contained in:
commit
04c154adc8
@ -48,7 +48,7 @@
|
|||||||
<mat-card-content style="text-align: center;">
|
<mat-card-content style="text-align: center;">
|
||||||
<h3><strong><span class="amount"><span class="currency-symbol">₹ </span>{{grand_tot_value}}</span></strong></h3><br/>
|
<h3><strong><span class="amount"><span class="currency-symbol">₹ </span>{{grand_tot_value}}</span></strong></h3><br/>
|
||||||
|
|
||||||
<mat-radio-group aria-label="Payment Mode" [(ngModel)]="payment_mode" (click)="changeType($event)">
|
<mat-radio-group aria-label="Payment Mode" [(ngModel)]="payment_mode">
|
||||||
<mat-radio-button value="1" >Online</mat-radio-button>
|
<mat-radio-button value="1" >Online</mat-radio-button>
|
||||||
<mat-radio-button value="2">Offline</mat-radio-button>
|
<mat-radio-button value="2">Offline</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
|
||||||
import { ApiService } from 'app/shared/api.service';
|
import { ApiService } from 'app/shared/api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -87,6 +87,14 @@ export class PaymentComponent implements OnInit {
|
|||||||
remarks:['']
|
remarks:['']
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.offlineDetForm=this.fb.group({
|
||||||
|
payment_type:[''],
|
||||||
|
payment_ref:[''],
|
||||||
|
check_date:[''],
|
||||||
|
check_branch_bank:[''],
|
||||||
|
check_deposit_mode:[''],
|
||||||
|
cheque_drop_address:['']
|
||||||
|
})
|
||||||
|
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
@ -173,19 +181,23 @@ export class PaymentComponent implements OnInit {
|
|||||||
console.log("Error")
|
console.log("Error")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
changeType(value){
|
// changeType(value){
|
||||||
console.log(value)
|
// console.log(value)
|
||||||
if(value.target.innerText == 'Offline'){
|
// if(value.target.innerText == 'Offline'){
|
||||||
this.offlineDetForm=this.fb.group({
|
// this.offlineDetForm.addControl('payment_type',new FormControl(''))
|
||||||
payment_type:[''],
|
// this.offlineDetForm.addControl('payment_ref',new FormControl(''))
|
||||||
payment_ref:[''],
|
// this.offlineDetForm.addControl('check_date',new FormControl(''))
|
||||||
check_date:[''],
|
// this.offlineDetForm.addControl('check_branch_bank',new FormControl(''))
|
||||||
check_branch_bank:[''],
|
// this.offlineDetForm=this.fb.group({
|
||||||
check_deposit_mode:[''],
|
// payment_type:[''],
|
||||||
cheque_drop_address:['']
|
// payment_ref:[''],
|
||||||
})
|
// check_date:[''],
|
||||||
}
|
// check_branch_bank:[''],
|
||||||
|
// check_deposit_mode:[''],
|
||||||
|
// cheque_drop_address:['']
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user