Bill change should be working

Reduce quantity should be working.
This commit is contained in:
2020-10-11 20:53:43 +05:30
parent 73f83f1aa7
commit b7f382cac8
52 changed files with 283 additions and 641 deletions

View File

@ -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(
() => {