Updated tracking in template and choose customer fixing.

This commit is contained in:
2026-09-04 08:13:26 +00:00
parent 3d86f8706f
commit 95ac73bbc4
37 changed files with 120 additions and 116 deletions
@@ -5,7 +5,7 @@
<mat-form-field class="flex-auto">
<mat-label>Units</mat-label>
<input matInput [formField]="form.units" />
@for (error of form.units().errors(); track error) {
@for (error of form.units().errors(); track $index) {
<mat-error>{{ error.message }}</mat-error>
}
</mat-form-field>
@@ -13,7 +13,7 @@
<mat-form-field class="flex-auto">
<mat-label>Fraction</mat-label>
<input matInput type="number" [formField]="form.fraction" />
@for (error of form.fraction().errors(); track error) {
@for (error of form.fraction().errors(); track $index) {
<mat-error>{{ error.message }}</mat-error>
}
</mat-form-field>
@@ -21,7 +21,7 @@
<mat-form-field class="flex-auto">
<mat-label>Yield</mat-label>
<input matInput type="number" [formField]="form.productYield" />
@for (error of form.productYield().errors(); track error) {
@for (error of form.productYield().errors(); track $index) {
<mat-error>{{ error.message }}</mat-error>
}
</mat-form-field>
@@ -29,7 +29,7 @@
<mat-form-field class="flex-auto">
<mat-label>Cost Price</mat-label>
<input matInput type="number" [formField]="form.costPrice" />
@for (error of form.costPrice().errors(); track error) {
@for (error of form.costPrice().errors(); track $index) {
<mat-error>{{ error.message }}</mat-error>
}
</mat-form-field>
@@ -37,7 +37,7 @@
<mat-form-field class="flex-auto">
<mat-label>Sale Price</mat-label>
<input matInput type="number" [formField]="form.salePrice" />
@for (error of form.salePrice().errors(); track error) {
@for (error of form.salePrice().errors(); track $index) {
<mat-error>{{ error.message }}</mat-error>
}
</mat-form-field>
@@ -45,7 +45,7 @@
<mat-form-field class="flex-auto">
<mat-label>Menu Category</mat-label>
<mat-select [formField]="form.menuCategory">
@for (mc of menuCategories; track mc) {
@for (mc of menuCategories; track mc.id) {
<mat-option [value]="mc.id">
{{ mc.name }}
</mat-option>