Chore:
Deduplicated the settle options function for save/update/void/receive payment Ported: Void Receive payment
This commit is contained in:
@ -13,7 +13,7 @@ import { TablesDialogComponent } from '../tables-dialog/tables-dialog.component'
|
||||
import { TableService } from '../../tables/table.service';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { AuthService } from '../../auth/auth.service';
|
||||
import { PaxComponent } from "../pax/pax.component";
|
||||
import { PaxComponent } from '../pax/pax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-bills',
|
||||
@ -46,8 +46,8 @@ export class BillsComponent implements OnInit {
|
||||
}
|
||||
|
||||
getPax(): void {
|
||||
if (this.bs.bill.id || this.bs.bill.customer.id) {
|
||||
return
|
||||
if (this.bs.bill.id || this.bs.bill.customer) {
|
||||
return;
|
||||
}
|
||||
const dialogRef = this.dialog.open(PaxComponent, {
|
||||
// width: '750px',
|
||||
|
||||
Reference in New Issue
Block a user