Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Fix/new user creation (#1346)
Anshul sharma3d9b36e2d579
diff --git a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsxindex df4461d937..b5287d9389 100644--- a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx+++ b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx@@ -5,6 +5,9 @@ import {DropdownMenuItem,MenuIcon,MenuItem,+ Tooltip,+ TooltipContent,+ TooltipTrigger,useDisclosure} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";@@ -189,7 +192,37 @@ const EmployeesTable = memo({accessorKey: "active",header: t`Active`,- cell: (item) => <Checkbox isChecked={item.getValue<boolean>()} />,+ cell: (item) => {+ const isActive = item.getValue<boolean>();+ const status = item.row.original.status;+ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <div className="w-fit">+ <Checkbox isChecked={isActive} />+ </div>+ </TooltipTrigger>+ <TooltipContent>+ {isActive ? (+ <Trans>+ To deactivate, use the row menu and choose Deactivate+ Account.+ </Trans>+ ) : status === "Invited" ? (+ <Trans>+ An invitation is pending. They become active once they+ accept it.+ </Trans>+ ) : (+ <Trans>+ To reactivate, use the row menu and choose Send Invite.+ The employee becomes active once they accept.+ </Trans>+ )}+ </TooltipContent>+ </Tooltip>+ );+ },meta: {icon: <LuToggleRight />}diff --git a/apps/erp/app/modules/users/users.service.ts b/apps/erp/app/modules/users/users.service.tsindex 8f5268ecdb..0b061c8d7c 100644--- a/apps/erp/app/modules/users/users.service.ts+++ b/apps/erp/app/modules/users/users.service.ts@@ -85,6 +85,8 @@ export async function getEmployee(.single();}+// Pending only (mirrors the 'Invited' condition in the `employees` view): counting+// accepted invites would leave a deactivated employee with no way to be re-invited.export async function getUnrevokedInviteEmails(client: SupabaseClient<Database>,companyId: string@@ -93,6 +95,7 @@ export async function getUnrevokedInviteEmails(.from("invite").select("email").eq("companyId", companyId)+ .is("acceptedAt", null).is("revokedAt", null);}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.jsonindex ad3795fda6..2e809a8b49 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json@@ -1,5 +1,5 @@{- "generated": "2026-08-07T05:01:49.045Z",+ "generated": "2026-08-07T11:34:00.821Z","totalTools": 1417,"modules": 15,"tools": [diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 8019698e42..83e416e52f 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -965,6 +965,9 @@ msgstr "Eine technische Änderung: die betroffenen Elemente, deren Methoden in emsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Eine Integration oder eine benutzerdefinierte Änderung — der kleine Teil, der tatsächlich benutzerdefiniert ist."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Eine Einladung steht aus. Sie werden aktiv, sobald sie sie akzeptieren."+msgid "An item cannot be added to itself."msgstr "Ein Element kann nicht zu sich selbst hinzugefügt werden."@@ -13573,9 +13576,15 @@ msgstr "Zeitzone"msgid "Title"msgstr "Titel"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Um zu deaktivieren, verwenden Sie das Zeilenmenü und wählen Sie Konto deaktivieren."+msgid "To Location"msgstr "Zielort"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Um zu reaktivieren, verwenden Sie das Zeilenmenü und wählen Sie Einladung senden. Der Mitarbeiter wird aktiv, sobald er die Einladung annimmt."+msgid "To Receive"msgstr "Zum Empfangen"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex a144c45fa7..900151fd0e 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -965,6 +965,9 @@ msgstr "An engineering change: the affected items whose methods are revised on amsgid "An integration or a custom change — the small slice that's actually custom."msgstr "An integration or a custom change — the small slice that's actually custom."+msgid "An invitation is pending. They become active once they accept it."+msgstr "An invitation is pending. They become active once they accept it."+msgid "An item cannot be added to itself."msgstr "An item cannot be added to itself."@@ -13573,9 +13576,15 @@ msgstr "Timezone"msgid "Title"msgstr "Title"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "To deactivate, use the row menu and choose Deactivate Account."+msgid "To Location"msgstr "To Location"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgid "To Receive"msgstr "To Receive"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 58403f9344..ff53ee36e2 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -965,6 +965,9 @@ msgstr "Un cambio de ingeniería: los elementos afectados cuyos métodos se revimsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Una integración o un cambio personalizado — la pequeña parte que es realmente personalizada."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Una invitación está pendiente. Se hacen activas una vez que la aceptan."+msgid "An item cannot be added to itself."msgstr "Un elemento no puede agregarse a sí mismo."@@ -13573,9 +13576,15 @@ msgstr "Zona horaria"msgid "Title"msgstr "Título"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Para desactivar, utilice el menú de la fila y seleccione Desactivar cuenta."+msgid "To Location"msgstr "Ubicación de destino"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Para reactivar, utilice el menú de la fila y seleccione Enviar invitación. El empleado se activa una vez que acepta."+msgid "To Receive"msgstr "Por Recibir"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 3ee1674a0b..b4c85f2b56 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -965,6 +965,9 @@ msgstr "Un ordre de modification d'ingénierie : les articles affectés dont lesmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Une intégration ou une modification personnalisée — la petite partie qui est réellement personnalisée."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Une invitation est en attente. Elle devient active une fois qu'elle est acceptée."+msgid "An item cannot be added to itself."msgstr "Un article ne peut pas être ajouté à lui-même."@@ -13573,9 +13576,15 @@ msgstr "Fuseau horaire"msgid "Title"msgstr "Titre"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Pour désactiver, utilisez le menu de ligne et choisissez Désactiver le compte."+msgid "To Location"msgstr "Vers l'emplacement"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Pour réactiver, utilisez le menu de ligne et choisissez Envoyer une invitation. L'employé devient actif dès qu'il accepte."+msgid "To Receive"msgstr "À recevoir"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 9fe0955c4e..4726ede82d 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -965,6 +965,9 @@ msgstr "एक इंजीनियरिंग परिवर्तन: पmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "एक एकीकरण या एक कस्टम परिवर्तन — वह छोटा हिस्सा जो वास्तव में कस्टम है।"+msgid "An invitation is pending. They become active once they accept it."+msgstr "एक आमंत्रण लंबित है। वे इसे स्वीकार करने के बाद सक्रिय हो जाते हैं।"+msgid "An item cannot be added to itself."msgstr "एक आइटम को स्वयं में नहीं जोड़ा जा सकता।"@@ -13573,9 +13576,15 @@ msgstr "समय क्षेत्र"msgid "Title"msgstr "शीर्षक"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "निष्क्रिय करने के लिए, पंक्ति मेनू का उपयोग करें और खाता निष्क्रिय करें चुनें।"+msgid "To Location"msgstr "स्थान को"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "पुनः सक्रिय करने के लिए, पंक्ति मेनू का उपयोग करें और निमंत्रण भेजें चुनें। कर्मचारी स्वीकार करने के बाद सक्रिय हो जाता है।"+msgid "To Receive"msgstr "प्राप्त करने के लिए"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 26d8893bdd..f3e88c3b71 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -965,6 +965,9 @@ msgstr "Una modifica ingegneristica: gli elementi interessati i cui metodi vengomsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Un'integrazione o una modifica personalizzata — la piccola parte che è effettivamente personalizzata."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Un invito è in sospeso. Diventano attivi una volta che lo accettano."+msgid "An item cannot be added to itself."msgstr "Un articolo non può essere aggiunto a se stesso."@@ -13573,9 +13576,15 @@ msgstr "Fuso orario"msgid "Title"msgstr "Titolo"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Per disattivare, usa il menu della riga e scegli Disattiva Account."+msgid "To Location"msgstr "Ubicazione di destinazione"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Per riattivare, usa il menu della riga e scegli Invia Invito. Il dipendente diventa attivo una volta che accetta."+msgid "To Receive"msgstr "Da Ricevere"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 7a589364d8..117b42a9b9 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -965,6 +965,9 @@ msgstr "エンジニアリング変更:ドラフト上で方法が改訂されmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "統合またはカスタム変更 — 実際にカスタムである小さなスライス。"+msgid "An invitation is pending. They become active once they accept it."+msgstr "招待は保留中です。受け入れるとアクティブになります。"+msgid "An item cannot be added to itself."msgstr "アイテムをそれ自体に追加することはできません。"@@ -13573,9 +13576,15 @@ msgstr "タイムゾーン"msgid "Title"msgstr "タイトル"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "無効化するには、行メニューを使用して、アカウント無効化を選択します。"+msgid "To Location"msgstr "到着地"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "再度有効化するには、行メニューを使用して、招待を送信を選択します。従業員が受け入れるとアクティブになります。"+msgid "To Receive"msgstr "受け取り予定"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 1a033230b3..ebecab8614 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -965,6 +965,9 @@ msgstr "엔지니어링 변경: 초안에서 방법이 수정되고 함께 릴msgid "An integration or a custom change — the small slice that's actually custom."msgstr "연동이나 커스텀 변경 — 실제로 커스텀인 작은 부분."+msgid "An invitation is pending. They become active once they accept it."+msgstr "초대가 대기 중입니다. 초대를 수락하면 활성화됩니다."+msgid "An item cannot be added to itself."msgstr "품목을 자기 자신에게 추가할 수 없습니다."@@ -13573,9 +13576,15 @@ msgstr "시간대"msgid "Title"msgstr "제목"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "비활성화하려면 행 메뉴를 사용하여 계정 비활성화를 선택하세요."+msgid "To Location"msgstr "대상 위치"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "다시 활성화하려면 행 메뉴를 사용하여 초대 보내기를 선택하세요. 직원이 수락하면 활성화됩니다."+msgid "To Receive"msgstr "입고 예정"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex f66e2a674b..a911e2c35f 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -965,6 +965,9 @@ msgstr "Zmiana inżynierska: elementy dotknięte zmianą, których metody zostamsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Integracja lub zmiana niestandardowa — mała część, która jest faktycznie niestandardowa."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Zaproszenie czeka na akceptację. Będą aktywni po zaakceptowaniu."+msgid "An item cannot be added to itself."msgstr "Przedmiot nie może być dodany do siebie."@@ -13573,9 +13576,15 @@ msgstr "Strefa czasowa"msgid "Title"msgstr "Tytuł"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Aby dezaktywować, użyj menu wiersza i wybierz Deaktywuj konto."+msgid "To Location"msgstr "Do lokalizacji"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Aby ponownie aktywować, użyj menu wiersza i wybierz Wyślij zaproszenie. Pracownik staje się aktywny po zaakceptowaniu."+msgid "To Receive"msgstr "Do Odebrania"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 38eddfffbe..9dce249943 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -965,6 +965,9 @@ msgstr "Uma mudança de engenharia: os itens afetados cujos métodos são revisamsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Uma integração ou uma mudança personalizada — a pequena parte que é realmente personalizada."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Um convite está pendente. Eles se tornam ativos assim que aceitarem."+msgid "An item cannot be added to itself."msgstr "Um item não pode ser adicionado a si mesmo."@@ -13573,9 +13576,15 @@ msgstr "Fuso Horário"msgid "Title"msgstr "Título"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Para desativar, use o menu de linha e escolha Desativar Conta."+msgid "To Location"msgstr "Para Localização"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Para reativar, use o menu de linha e escolha Enviar Convite. O funcionário fica ativo assim que aceita."+msgid "To Receive"msgstr "Para Receber"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 27a1d52ed8..be16ff1a3a 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -965,6 +965,9 @@ msgstr "Инженерное изменение: затронутые элемеmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Интеграция или пользовательское изменение — небольшая часть, которая действительно является пользовательской."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Приглашение ожидает подтверждения. Они станут активными после его принятия."+msgid "An item cannot be added to itself."msgstr "Элемент не может быть добавлен к самому себе."@@ -13573,9 +13576,15 @@ msgstr "Часовой пояс"msgid "Title"msgstr "Название"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Чтобы отключить, используйте меню строки и выберите Деактивировать учетную запись."+msgid "To Location"msgstr "На локацию"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Чтобы переактивировать, используйте меню строки и выберите Отправить приглашение. Сотрудник становится активным после принятия приглашения."+msgid "To Receive"msgstr "К получению"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex c1b90f169f..ddd416234c 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -965,6 +965,9 @@ msgstr "Bir mühendislik değişikliği: yöntemleri taslak üzerinde revize edimsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Bir entegrasyon veya özel bir değişiklik — aslında özel olan küçük dilim."+msgid "An invitation is pending. They become active once they accept it."+msgstr "Bir davet beklemede. Kabul ettikleri zaman aktif hale gelirler."+msgid "An item cannot be added to itself."msgstr "Bir öğe kendisine eklenemez."@@ -13573,9 +13576,15 @@ msgstr "Saat Dilim"msgid "Title"msgstr "Unvan"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "Deaktif hale getirmek için, satır menüsünü kullanın ve Hesabı Deaktif Et'i seçin."+msgid "To Location"msgstr "Varış Konumu"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "Yeniden etkinleştirmek için, satır menüsünü kullanın ve Davet Gönder'i seçin. Çalışan bunu kabul ettiğinde etkin hale gelir."+msgid "To Receive"msgstr "Alınacak"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex d39e52993a..820bdd24ed 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -965,6 +965,9 @@ msgstr "工程变更:受影响项目的方法在草稿中进行修改,并一msgid "An integration or a custom change — the small slice that's actually custom."msgstr "一个集成或自定义更改——实际上是自定义的小部分。"+msgid "An invitation is pending. They become active once they accept it."+msgstr "邀请待审批。他们接受后将变为活跃。"+msgid "An item cannot be added to itself."msgstr "一个项目不能添加到自身。"@@ -13573,9 +13576,15 @@ msgstr "时区"msgid "Title"msgstr "标题"+msgid "To deactivate, use the row menu and choose Deactivate Account."+msgstr "要停用,请使用行菜单并选择停用账户。"+msgid "To Location"msgstr "至位置"+msgid "To reactivate, use the row menu and choose Send Invite. The employee becomes active once they accept."+msgstr "要重新激活,请使用行菜单并选择发送邀请。员工接受后即会激活。"+msgid "To Receive"msgstr "待接收"