Fix: Kot move fixed. Kot id was missing on move. Also, voucher_type KOT as truthy not and would give bill not found error.

This commit is contained in:
2020-12-24 09:10:55 +05:30
parent 7550ced477
commit 565cffaef1
2 changed files with 4 additions and 4 deletions

View File

@ -220,7 +220,7 @@ export class BillsComponent implements OnInit {
);
}
moveKot(kot: Kot) {
moveKot(kot: BillViewItem) {
const canMergeTables = this.auth.allowed('merge-tables');
this.chooseTable(canMergeTables)
.pipe(
@ -233,9 +233,9 @@ export class BillsComponent implements OnInit {
return this.bs.moveTable(table);
}
if (table.status) {
return this.bs.mergeKot(kot.id as string, table);
return this.bs.mergeKot(kot.kotId as string, table);
}
return this.bs.moveKot(kot.id as string, table);
return this.bs.moveKot(kot.kotId as string, table);
}),
)
.subscribe(