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