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:
Amritanshu
2019-08-11 01:37:14 +05:30
parent d7fdf751b9
commit dcaf23b390
23 changed files with 334 additions and 266 deletions

View File

@ -1,8 +1,8 @@
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
import { Observable } from 'rxjs';
import { FormArray, FormBuilder, FormGroup, Validators } from "@angular/forms";
import { DiscountDataSource } from "./discount-datasource";
import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
import { DiscountDataSource } from './discount-datasource';
@Component({
selector: 'app-modifiers',
@ -28,7 +28,7 @@ export class DiscountComponent {
this.list.map(
x => this.fb.group({
name: [x.name],
discount: ["", [Validators.min(0), Validators.max(100)]]
discount: ['', [Validators.min(0), Validators.max(100)]]
})
)
));