subcatprod

This commit is contained in:
Surya Paolo
2024-01-12 13:03:07 +01:00
parent ee064854a7
commit 89e8575aae
12 changed files with 97 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import { IAction } from '@src/model/Projects'
import { IFriends, IGroupShort, IMyGroup, IPaymentType } from '@src/model/UserStore'
import {
IDepartment, IProducer, IShareWithUs, IStorehouse, IProductInfo, IProvider, IScontistica, ICategory, IGasordine, ICatProd
IDepartment, IProducer, IShareWithUs, IStorehouse, IProductInfo, IProvider, IScontistica, ICategory, IGasordine, ICatProd, ISubCatProd
} from '@src/model/Products'
import { IUserFields, IUserProfile } from '@src/model/UserStore'
@@ -447,6 +447,7 @@ export interface IGlobalState {
producers: IProducer[],
providers: IProvider[],
catprods: ICatProd[],
subcatprods: ISubCatProd[],
gasordines: IGasordine[],
scontisticas: IScontistica[],
storehouses: IStorehouse[],

View File

@@ -8,7 +8,9 @@ export interface IProductInfo {
description?: string,
department?: string,
idCatProds?: string[],
idSubCatProds?: string[],
catprods?: ICatProd[],
subcatprods?: ISubCatProd[],
color?: string,
size?: string,
weight?: number,
@@ -96,6 +98,7 @@ export interface IProductsState {
cart: ICart
orders: IOrderCart[]
catprods: ICatProd[]
subcatprods: ISubCatProd[]
productInfos: IProductInfo[]
}
@@ -133,6 +136,15 @@ export interface ICatProd {
color?: string,
}
export interface ISubCatProd {
_id?: any
idCatProd: string
name: string
img?: string
icon?: string
color?: string
}
export interface IStorehouse {
_id?: any
idapp?: string