Product Group renamed to Menu Category
Extracted Product Group -> Group_type to a a new object called Sale Category. Moved tax from product to Sale Category for uniform taxes on types of sales.
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
export class ProductGroup {
|
||||
export class MenuCategory {
|
||||
id: string;
|
||||
name: string;
|
||||
discountLimit: number;
|
||||
isModifierCompulsory: boolean;
|
||||
groupType: string;
|
||||
isActive: boolean;
|
||||
isFixture: boolean;
|
||||
sortOrder: number;
|
||||
@ -1,13 +1,13 @@
|
||||
import {ProductGroup} from './product-group';
|
||||
import {Tax} from "./tax";
|
||||
import {MenuCategory} from './menu-category';
|
||||
import {SaleCategory} from "./sale-category";
|
||||
|
||||
export class Product {
|
||||
id: string;
|
||||
code: number;
|
||||
name: string;
|
||||
units: string;
|
||||
productGroup: ProductGroup;
|
||||
tax: Tax;
|
||||
menuCategory: MenuCategory;
|
||||
saleCategory: SaleCategory;
|
||||
price: number;
|
||||
hasHappyHour: boolean;
|
||||
isNotAvailable: boolean;
|
||||
|
||||
7
bookie/src/app/core/sale-category.ts
Normal file
7
bookie/src/app/core/sale-category.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import {Tax} from "./tax";
|
||||
|
||||
export class SaleCategory {
|
||||
id: string;
|
||||
name: string;
|
||||
tax: Tax;
|
||||
}
|
||||
Reference in New Issue
Block a user