Big Chunk of updates on way to making the sales portion working
This commit is contained in:
@@ -34,6 +34,10 @@
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxLayout="row" fxLayoutAlign="space-around start" fxLayout.lt-md="column" fxLayoutGap="20px"
|
||||
fxLayoutGap.lt-md="0px">
|
||||
<mat-checkbox formControlName="isActive">Is Active?</mat-checkbox>
|
||||
</div>
|
||||
</form>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
|
||||
@@ -35,7 +35,8 @@ export class ModifierDetailComponent implements OnInit, AfterViewInit {
|
||||
name: '',
|
||||
showInBill: '',
|
||||
price: '',
|
||||
modifierCategory: ''
|
||||
modifierCategory: '',
|
||||
isActive: ''
|
||||
});
|
||||
}
|
||||
|
||||
@@ -53,6 +54,7 @@ export class ModifierDetailComponent implements OnInit, AfterViewInit {
|
||||
name: this.item.name || '',
|
||||
showInBill: this.item.showInBill,
|
||||
price: this.item.price || '',
|
||||
isActive: this.item.isActive,
|
||||
modifierCategory: this.item.modifierCategory.id ? this.item.modifierCategory.id : ''
|
||||
});
|
||||
}
|
||||
@@ -107,6 +109,7 @@ export class ModifierDetailComponent implements OnInit, AfterViewInit {
|
||||
this.item.name = formModel.name;
|
||||
this.item.showInBill = formModel.showInBill;
|
||||
this.item.price = +formModel.price;
|
||||
this.item.isActive = formModel.isActive;
|
||||
this.item.modifierCategory.id = formModel.modifierCategory;
|
||||
return this.item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user