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:
Amritanshu
2019-06-20 13:15:23 +05:30
parent 16455fdcac
commit 05f8058a15
74 changed files with 1400 additions and 646 deletions

View File

@ -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;

View File

@ -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;

View File

@ -0,0 +1,7 @@
import {Tax} from "./tax";
export class SaleCategory {
id: string;
name: string;
tax: Tax;
}