mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
refactor(FE): Refactor product flags to support single flag and
sub-flags
This commit is contained in:
+6
-2
@@ -15,7 +15,10 @@ export type BaseProduct = {
|
||||
uom: Uom;
|
||||
product_category: ProductCategory;
|
||||
suppliers: (BaseSupplier & { price: number })[];
|
||||
flags: string[];
|
||||
flag: string;
|
||||
sub_flag?: string;
|
||||
sub_flags?: string[];
|
||||
flags?: string[];
|
||||
};
|
||||
|
||||
export type Product = BaseMetadata & BaseProduct;
|
||||
@@ -34,7 +37,8 @@ export type CreateProductPayload = {
|
||||
supplier_id: number;
|
||||
price: number;
|
||||
}[];
|
||||
flags: string[];
|
||||
flag: string;
|
||||
sub_flags?: string[];
|
||||
};
|
||||
|
||||
export type UpdateProductPayload = CreateProductPayload;
|
||||
|
||||
Reference in New Issue
Block a user