Base solution for your next web application
Open Closed

How can be used OU in this scenario #6679


User avatar
0
mujthabagroad created

Hi, First of all appreciating for this good effort to make such a framework.

We were migrating our application to the AspZero framework. we are in a situation in our application architecture that we have an ERP with multi-tenancy, multiple offices, departments, and roles. here, the user should login into specific OFFICE to do his office based tasks like sales, purchase etc. in a tenant. and office will have its own settings like muti-currency and cultures. All transactions should be posted under this office.

In this case, what is the best way to utilize the OrganizationUnits to handle this?. Or we need to do OFFICE setup throughout the application?.

Thanks in advance.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks :). If you want to use OUs as your Offices, you can create a dynamic filter as explained in https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core

    Or you can define Office Entity and create IMayHaveOffice interface and implement the filter as explained in the documetn above.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mujthabagroad created

    Hello,

    Thanks for your help, will try to do in this way.

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)