Payment mode
This commit is contained in:
parent
1f87885ba7
commit
366fa34a35
@ -128,7 +128,6 @@
|
||||
</mat-form-field> -->
|
||||
|
||||
<mat-form-field appearance="outline" class="mat-pane" *ngIf="action == 'Update'">
|
||||
|
||||
<mat-label>Status</mat-label>
|
||||
<mat-select placeholder="Select Status" formControlName="status" required>
|
||||
<mat-option *ngFor="let details of Status" [value]="details.value">
|
||||
@ -137,6 +136,21 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<div style="margin-top: 5px;margin-bottom: 15px;">
|
||||
<mat-radio-group aria-label="Select an option" formControlName="paymentStatus">
|
||||
<mat-radio-button value="1">Paid</mat-radio-button>
|
||||
<mat-radio-button value="0" style="margin-left: 10px;">Not Paid</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div>
|
||||
|
||||
<mat-form-field appearance="outline" class="mat-pane" formControlName="paymentMode" *ngIf="form.get('paymentStatus').value == 1">
|
||||
<mat-label>Payment Mode</mat-label>
|
||||
<mat-select placeholder="Select Payment" required>
|
||||
<mat-option value="Cash">Cash</mat-option>
|
||||
<mat-option value="UPI">UPI</mat-option>
|
||||
<mat-option value="Card">Card</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<!-- <div class="notes">
|
||||
<input type="checkbox" id="scales" name="scales" checked>
|
||||
<label for="scales">Send notifications for customer</label>
|
||||
|
||||
@ -110,6 +110,8 @@ export class DialogBoxComponent implements OnInit {
|
||||
frontDeskChoosedPractiID: any;
|
||||
practiId: any;
|
||||
isSubmitting: boolean = false;
|
||||
selectedRadioValue: any;
|
||||
paymentMode: boolean = false;
|
||||
constructor(private notifierService: NotifierService,private router: Router,private formBuilder: FormBuilder, public _cus:CustomersService,
|
||||
public dialogRef: MatDialogRef<DialogBoxComponent>,public _api:ConsultantService, public _con:ConsultantService,
|
||||
@Inject(MAT_DIALOG_DATA) public data: UsersData,public _app:AppointmentsService,public end_user:EndUserService) {
|
||||
@ -208,16 +210,15 @@ export class DialogBoxComponent implements OnInit {
|
||||
busname: new FormControl('', [Validators.required]),
|
||||
service: new FormControl('', [Validators.required]),
|
||||
practitioner: new FormControl('', [Validators.required]),
|
||||
paymentStatus: new FormControl('', [Validators.required]),
|
||||
paymentMode: new FormControl('', [Validators.required]),
|
||||
appoinmentDate: new FormControl('',null),
|
||||
appoinmentTime: new FormControl('',null),
|
||||
customer: new FormControl('', [Validators.required]),
|
||||
// note: new FormControl('', [Validators.required]),
|
||||
|
||||
status: new FormControl('', null),
|
||||
|
||||
status: new FormControl('', null),
|
||||
|
||||
appoinmentSlots: new FormControl(''),
|
||||
|
||||
appoinmentSlots: new FormControl(''),
|
||||
});
|
||||
console.log(this.local_data, this.selects)
|
||||
// this.findSlotIndex = this.local_data.appoinmentSlots
|
||||
@ -767,7 +768,6 @@ customerIdvalue(id){
|
||||
this.customerId = id
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user