Deduplicated the settle options function for save/update/void/receive payment

Ported:
  Void
  Receive payment
This commit is contained in:
2020-09-24 08:47:09 +05:30
parent 6c06271315
commit 578385f866
11 changed files with 164 additions and 130 deletions

View File

@ -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',