Bill change should be working
Reduce quantity should be working.
This commit is contained in:
@ -99,9 +99,7 @@ export class SalesHomeComponent {
|
||||
if (this.bs.bill.voucherType !== PrintType.Kot) {
|
||||
return observableOf(this.bs.bill.voucherType);
|
||||
}
|
||||
return this.dialog
|
||||
.open(BillTypeComponent)
|
||||
.afterClosed();
|
||||
return this.dialog.open(BillTypeComponent).afterClosed();
|
||||
}
|
||||
|
||||
confirmTableDialog(table: Table): Observable<{ table: Table; confirmed: boolean }> {
|
||||
@ -159,13 +157,13 @@ export class SalesHomeComponent {
|
||||
}
|
||||
}),
|
||||
switchMap(() => this.billTypeDialog()),
|
||||
switchMap((x)=> {
|
||||
switchMap((x) => {
|
||||
if (x) {
|
||||
return observableOf(x);
|
||||
}
|
||||
return throwError('No Bill Type Chosen')
|
||||
return throwError('No Bill Type Chosen');
|
||||
}),
|
||||
switchMap((x: PrintType) => this.bs.printBill(guestBookId, x as PrintType)),
|
||||
switchMap((x: PrintType) => this.bs.printBill(guestBookId, x as PrintType)),
|
||||
)
|
||||
.subscribe(
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user