diff --git a/src/controllers/04-product-controller.ts b/src/controllers/04-product-controller.ts index 4fbbe13..18fd275 100644 --- a/src/controllers/04-product-controller.ts +++ b/src/controllers/04-product-controller.ts @@ -105,6 +105,12 @@ export class ProductController extends Controller { registeredBranch: { OR: permissionCondCompany(req.user) }, }, }, + { + productGroup: { + shared: true, + registeredBranch: { OR: permissionCondCompany(req.user) }, + }, + }, ], }, }); diff --git a/src/controllers/04-product-group-controller.ts b/src/controllers/04-product-group-controller.ts index 0282585..20a3f5b 100644 --- a/src/controllers/04-product-group-controller.ts +++ b/src/controllers/04-product-group-controller.ts @@ -33,6 +33,7 @@ type ProductGroupCreate = { detail: string; remark: string; status?: Status; + shared?: boolean; registeredBranchId: string; }; @@ -41,6 +42,7 @@ type ProductGroupUpdate = { detail?: string; remark?: string; status?: "ACTIVE" | "INACTIVE"; + shared?: boolean; registeredBranchId?: string; };