fix: lock mutate base currency once organization has transactions.

This commit is contained in:
a.bouhuolia
2021-09-09 21:06:16 +02:00
parent 772c24e3ef
commit b061f49ca7
8 changed files with 308 additions and 39 deletions

View File

@@ -43,6 +43,7 @@ import InventoryAdjustments from 'api/controllers/Inventory/InventoryAdjustments
import asyncRenderMiddleware from './middleware/AsyncRenderMiddleware';
import Jobs from './controllers/Jobs';
import Miscellaneous from 'api/controllers/Miscellaneous';
import OrganizationDashboard from 'api/controllers/OrganizationDashboard';
export default () => {
const app = Router();
@@ -75,6 +76,7 @@ export default () => {
dashboard.use(I18nAuthenticatedMiddlware);
dashboard.use(EnsureTenantIsSeeded);
dashboard.use('/organization', Container.get(OrganizationDashboard).router());
dashboard.use('/invite', Container.get(InviteUsers).authRouter());
dashboard.use('/currencies', Container.get(Currencies).router());
dashboard.use('/settings', Container.get(Settings).router());