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 parent
d7fdf751b9
commit
dcaf23b390
23 files changed
+334
-266
No files matched your search
@@ -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)]]
|
||||
})
|
||||
)
|
||||
));
|
||||
|
||||
Reference in new issue
Block a user