Tax is added directly to product for sale
Auth guard and auth service simplified and fixed so that user is updated upon login Home component changed to use square buttons Fixed showing the totals in the bill ng linted the project
This commit is contained in:
@ -1,10 +1,17 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { Bill } from './bill';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Bill, Kot } from './bill';
|
||||
import { BillsDataSource } from './bills-datasource';
|
||||
import { BillService } from '../bill.service';
|
||||
import { QuantityComponent } from '../quantity/quantity.component';
|
||||
import { MatDialog } from '@angular/material';
|
||||
import { Table } from '../../core/table';
|
||||
import { Observable, throwError } from 'rxjs';
|
||||
import { ConfirmDialogComponent } from '../../shared/confirm-dialog/confirm-dialog.component';
|
||||
import { map, switchMap } from 'rxjs/operators';
|
||||
import { TablesDialogComponent } from '../tables-dialog/tables-dialog.component';
|
||||
import { TableService } from '../../tables/table.service';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-bills',
|
||||
@ -19,8 +26,11 @@ export class BillsComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private bs: BillService
|
||||
private toaster: ToasterService,
|
||||
private bs: BillService,
|
||||
private tSer: TableService
|
||||
) {
|
||||
}
|
||||
|
||||
@ -62,20 +72,4 @@ export class BillsComponent implements OnInit {
|
||||
modifier(item: any): void {
|
||||
this.bs.modifier(item);
|
||||
}
|
||||
|
||||
netAmount(): number {
|
||||
return this.bs.netAmount();
|
||||
}
|
||||
|
||||
discountAmount(): number {
|
||||
return this.bs.discountAmount();
|
||||
}
|
||||
|
||||
taxAmount(): number {
|
||||
return this.bs.taxAmount();
|
||||
}
|
||||
|
||||
amount(): number {
|
||||
return this.bs.amount();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user