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(items): say why Make Active is locked by a change notice
Raul6af3f28b2a0f
diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsxindex 173d8f54eb..36b6cb3aeb 100644--- a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx@@ -322,6 +322,11 @@ const MakeMethodTools = ({<ItemChangeNoticeLockchangeNotices={openChangeNotices}isLocked={isChangeNoticeLocked}+ reason={+ <ActiveVersionLockReason+ changeNotices={openChangeNotices}+ />+ }><DropdownMenuItemdisabled={@@ -771,6 +776,9 @@ function DraftMethodNotice({changeNotices={lock.changeNotices}isLocked={lock.isLocked}className="w-fit"+ reason={+ <ActiveVersionLockReason changeNotices={lock.changeNotices} />+ }><Buttonsize="sm"@@ -788,6 +796,36 @@ function DraftMethodNotice({);}+// Why the active version can't change: the lock's default wording is about+// creating new versions, which is not what Make Active does.+function ActiveVersionLockReason({+ changeNotices+}: {+ changeNotices: ChangeNoticeForItem[];+}) {+ const ids = changeNotices.map((co) => co.changeOrderId).join(", ");+ if (changeNotices.length === 0) {+ return (+ <Trans>+ Change notices could not be loaded, so the active version cannot be+ changed. Reload to try again.+ </Trans>+ );+ }+ if (changeNotices.length === 1) {+ return (+ <Trans>+ Open in change notice {ids}. Release it to change the active version.+ </Trans>+ );+ }+ return (+ <Trans>+ Open in change notices {ids}. Release them to change the active version.+ </Trans>+ );+}+function AdvancedSection({onChange}: {diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 6b62ecb053..a5c4725fe1 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -4821,6 +4821,9 @@ msgstr "Änderungsmitteilungen"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Änderungsmitteilungen konnten nicht geladen werden, sodass neue Versionen und Revisionen blockiert sind. Zum erneuten Versuch neu laden."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Änderungsmitteilungen konnten nicht geladen werden, sodass die aktive Version nicht geändert werden kann. Zum erneuten Versuch neu laden."+msgid "Change order"msgstr "Änderungsauftrag"@@ -15858,9 +15861,15 @@ msgstr "Instandhaltungsaufträge öffnen"msgid "Open in Carbon"msgstr "In Carbon öffnen"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "In Änderungsmitteilung {ids} offen. Geben Sie sie frei, um die aktive Version zu ändern."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "In Änderungsmitteilung {ids} offen. Geben Sie sie frei, um neue Versionen oder Revisionen zu erstellen."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "In Änderungsmitteilungen {ids} offen. Geben Sie sie frei, um die aktive Version zu ändern."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "In Änderungsmitteilungen {ids} offen. Geben Sie sie frei, um neue Versionen oder Revisionen zu erstellen."diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex a73b253b9d..ccbd1db7b7 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -4821,6 +4821,9 @@ msgstr "Change Notices"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgid "Change order"msgstr "Change order"@@ -15858,9 +15861,15 @@ msgstr "Open Dispatches"msgid "Open in Carbon"msgstr "Open in Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Open in change notice {ids}. Release it to change the active version."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Open in change notice {ids}. Release it to create new versions or revisions."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Open in change notices {ids}. Release them to change the active version."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Open in change notices {ids}. Release them to create new versions or revisions."diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 38dcc6db27..0b563565d8 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -4821,6 +4821,9 @@ msgstr "Avisos de Cambio"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "No se pudieron cargar los avisos de cambio, por lo que las nuevas versiones y revisiones están bloqueadas. Recarga para intentar de nuevo."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "No se pudieron cargar los avisos de cambio, por lo que no se puede cambiar la versión activa. Recarga para intentar de nuevo."+msgid "Change order"msgstr "Orden de cambio"@@ -15858,9 +15861,15 @@ msgstr "Órdenes de mantenimiento abiertas"msgid "Open in Carbon"msgstr "Abrir en Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Abierto en aviso de cambio {ids}. Libérelo para cambiar la versión activa."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Abierto en aviso de cambio {ids}. Libérelo para crear nuevas versiones o revisiones."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Abierto en avisos de cambio {ids}. Libérelos para cambiar la versión activa."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Abierto en avisos de cambio {ids}. Libérelos para crear nuevas versiones o revisiones."diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 540b460e0e..b86282b435 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -4821,6 +4821,9 @@ msgstr "Avis de modification"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Les avis de modification n'ont pas pu être chargés, donc les nouvelles versions et révisions sont bloquées. Recharger pour réessayer."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Les avis de modification n'ont pas pu être chargés, donc la version active ne peut pas être changée. Recharger pour réessayer."+msgid "Change order"msgstr "Ordre de modification"@@ -15858,9 +15861,15 @@ msgstr "Interventions de maintenance ouvertes"msgid "Open in Carbon"msgstr "Ouvrir dans Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Ouvert dans l'avis de modification {ids}. Lancez-le pour changer la version active."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Ouvert dans l'avis de modification {ids}. Lancez-le pour créer de nouvelles versions ou révisions."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Ouverts dans les avis de modification {ids}. Lancez-les pour changer la version active."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Ouverts dans les avis de modification {ids}. Lancez-les pour créer de nouvelles versions ou révisions."diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 5528f1b62b..0f68f6891e 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -4821,6 +4821,9 @@ msgstr "परिवर्तन सूचनाएं"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "परिवर्तन सूचना को लोड नहीं किया जा सका, इसलिए नए संस्करण और रिवीजन अवरुद्ध हैं। पुनः प्रयास करने के लिए फिर से लोड करें।"+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "परिवर्तन सूचना को लोड नहीं किया जा सका, इसलिए सक्रिय संस्करण नहीं बदला जा सकता। पुनः प्रयास करने के लिए फिर से लोड करें।"+msgid "Change order"msgstr "परिवर्तन आदेश"@@ -15858,9 +15861,15 @@ msgstr "खुले रखरखाव कार्य"msgid "Open in Carbon"msgstr "Carbon में खोलें"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "परिवर्तन सूचना {ids} में खुला है। सक्रिय संस्करण बदलने के लिए इसे जारी करें।"+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "परिवर्तन सूचना {ids} में खुला है। नए संस्करण या रिवीजन बनाने के लिए इसे जारी करें।"+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "परिवर्तन सूचनाओं {ids} में खुले हैं। सक्रिय संस्करण बदलने के लिए उन्हें जारी करें।"+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "परिवर्तन सूचनाओं {ids} में खुले हैं। नए संस्करण या रिवीजन बनाने के लिए उन्हें जारी करें।"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 03328fa63e..affa856b6f 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -4821,6 +4821,9 @@ msgstr "Avvisi di modifica"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Non è stato possibile caricare gli avvisi di modifica, quindi le nuove versioni e revisioni sono bloccate. Ricarica per provare di nuovo."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Non è stato possibile caricare gli avvisi di modifica, quindi la versione attiva non può essere cambiata. Ricarica per provare di nuovo."+msgid "Change order"msgstr "Ordine di modifica"@@ -15858,9 +15861,15 @@ msgstr "Interventi di manutenzione aperti"msgid "Open in Carbon"msgstr "Apri in Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Apri nell'avviso di modifica {ids}. Rilascialo per cambiare la versione attiva."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Apri nell'avviso di modifica {ids}. Rilascialo per creare nuove versioni o revisioni."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Apri negli avvisi di modifica {ids}. Rilasciali per cambiare la versione attiva."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Apri negli avvisi di modifica {ids}. Rilasciali per creare nuove versioni o revisioni."diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 4242cad7a9..1d14b1678e 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -4821,6 +4821,9 @@ msgstr "変更通知"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "変更通知を読み込めませんでした。新しいバージョンとリビジョンはブロックされています。再度読み込んでください。"+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "変更通知を読み込めませんでした。アクティブバージョンは変更できません。再度読み込んでください。"+msgid "Change order"msgstr "変更指示"@@ -15858,9 +15861,15 @@ msgstr "オープン保全指示"msgid "Open in Carbon"msgstr "Carbonで開く"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "変更通知{ids}で開いています。アクティブバージョンを変更するには、それをリリースしてください。"+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "変更通知{ids}で開いています。新しいバージョンまたはリビジョンを作成するには、それをリリースしてください。"+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "変更通知{ids}で開いています。アクティブバージョンを変更するには、それらをリリースしてください。"+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "変更通知{ids}で開いています。新しいバージョンまたはリビジョンを作成するには、それらをリリースしてください。"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 94588f16fd..ddf5580683 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -4821,6 +4821,9 @@ msgstr "변경 통지"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "변경 통지를 로드할 수 없으므로 새 버전과 리비전이 차단되었습니다. 다시 시도하려면 새로 고침하십시오."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "변경 통지를 로드할 수 없으므로 활성 버전을 변경할 수 없습니다. 다시 시도하려면 새로 고침하십시오."+msgid "Change order"msgstr "변경 오더"@@ -15858,9 +15861,15 @@ msgstr "미결 유지보수 지시"msgid "Open in Carbon"msgstr "Carbon에서 열기"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "변경 통지 {ids}에서 열기. 활성 버전을 변경하려면 릴리스하세요."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "변경 통지 {ids}에서 열기. 새로운 버전 또는 리비전을 생성하려면 릴리스하세요."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "변경 통지 {ids}에서 열기. 활성 버전을 변경하려면 릴리스하세요."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "변경 통지 {ids}에서 열기. 새로운 버전 또는 리비전을 생성하려면 릴리스하세요."diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 13c716380e..32b1cfdfc8 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -4821,6 +4821,9 @@ msgstr "Zawiadomienia o zmianie"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Zawiadomienia o zmianie nie mogły być załadowane, więc nowe wersje i rewizje są zablokowane. Załaduj ponownie, aby spróbować ponownie."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Zawiadomienia o zmianie nie mogły być załadowane, więc nie można zmienić aktywnej wersji. Załaduj ponownie, aby spróbować ponownie."+msgid "Change order"msgstr "Zlecenie zmiany"@@ -15858,9 +15861,15 @@ msgstr "Otwarte zlecenia utrzymania ruchu"msgid "Open in Carbon"msgstr "Otwórz w Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Otwarte w zawiadomieniu o zmianie {ids}. Zwolnij to, aby zmienić aktywną wersję."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Otwarte w zawiadomieniu o zmianie {ids}. Zwolnij to aby utworzyć nowe wersje lub rewizje."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Otwarte w zawiadomieniach o zmianie {ids}. Zwolnij je, aby zmienić aktywną wersję."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Otwarte w zawiadomieniach o zmianie {ids}. Zwolnij je aby utworzyć nowe wersje lub rewizje."diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 9fcd812948..f574de58c2 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -4821,6 +4821,9 @@ msgstr "Avisos de Alteração"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Os avisos de alteração não puderam ser carregados, portanto novas versões e revisões estão bloqueadas. Recarregue para tentar novamente."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Os avisos de alteração não puderam ser carregados, portanto a versão ativa não pode ser alterada. Recarregue para tentar novamente."+msgid "Change order"msgstr "Ordem de alteração"@@ -15858,9 +15861,15 @@ msgstr "Ordens de manutenção abertas"msgid "Open in Carbon"msgstr "Abrir no Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Aberto em aviso de alteração {ids}. Libere-o para alterar a versão ativa."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Aberto em aviso de alteração {ids}. Libere-o para criar novas versões ou revisões."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Aberto em avisos de alteração {ids}. Libere-os para alterar a versão ativa."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Aberto em avisos de alteração {ids}. Libere-os para criar novas versões ou revisões."diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 0e1fa3fff8..a3289e83e2 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -4821,6 +4821,9 @@ msgstr "Извещения об изменении"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Извещения об изменении не удалось загрузить, поэтому новые версии и ревизии заблокированы. Перезагрузите, чтобы повторить попытку."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Извещения об изменении не удалось загрузить, поэтому активную версию нельзя изменить. Перезагрузите, чтобы повторить попытку."+msgid "Change order"msgstr "Приказ об изменении"@@ -15858,9 +15861,15 @@ msgstr "Открыть Заявки на техобслуживание"msgid "Open in Carbon"msgstr "Открыть в Carbon"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Открыть в Извещении об изменении {ids}. Запустите его в работу, чтобы изменить активную версию."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Открыть в Извещении об изменении {ids}. Запустите его в работу, чтобы создать новые версии или ревизии."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Открыть в Извещениях об изменении {ids}. Запустите их в работу, чтобы изменить активную версию."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Открыть в Извещениях об изменении {ids}. Запустите их в работу, чтобы создать новые версии или ревизии."diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex c5a8d1008b..a2f14053fa 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -4821,6 +4821,9 @@ msgstr "Değişiklik Bildirimleri"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "Değişiklik Bildirimleri yüklenemedi, bu nedenle yeni sürümler ve revizyonlar engellendi. Tekrar denemek için sayfayı yeniden yükleyin."+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "Değişiklik Bildirimleri yüklenemedi, bu nedenle etkin sürüm değiştirilemez. Tekrar denemek için sayfayı yeniden yükleyin."+msgid "Change order"msgstr "Değişim emri"@@ -15858,9 +15861,15 @@ msgstr "Açık Bakım emirleri"msgid "Open in Carbon"msgstr "Carbon'da Aç"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "Değişiklik bildirimi {ids} içinde aç. Etkin sürümü değiştirmek için serbest bırak."+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "Değişiklik bildirimi {ids} içinde aç. Yeni sürümler veya revizyonlar oluşturmak için serbest bırak."+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "Değişiklik bildirimleri {ids} içinde aç. Etkin sürümü değiştirmek için serbest bırak."+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "Değişiklik bildirimleri {ids} içinde aç. Yeni sürümler veya revizyonlar oluşturmak için serbest bırak."diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 9467a45c05..557c7f794a 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -4821,6 +4821,9 @@ msgstr "变更通知"msgid "Change notices could not be loaded, so new versions and revisions are blocked. Reload to try again."msgstr "无法加载变更通知,因此新版本和修订版被阻止。重新加载以重试。"+msgid "Change notices could not be loaded, so the active version cannot be changed. Reload to try again."+msgstr "无法加载变更通知,因此无法更改有效版本。重新加载以重试。"+msgid "Change order"msgstr "变更单"@@ -15858,9 +15861,15 @@ msgstr "未结维护工单"msgid "Open in Carbon"msgstr "在 Carbon 中打开"+msgid "Open in change notice {ids}. Release it to change the active version."+msgstr "打开于变更通知 {ids}。下达它以更改有效版本。"+msgid "Open in change notice {ids}. Release it to create new versions or revisions."msgstr "打开于变更通知 {ids}。下达它来创建新版本或修订版。"+msgid "Open in change notices {ids}. Release them to change the active version."+msgstr "打开于变更通知 {ids}。下达它们以更改有效版本。"+msgid "Open in change notices {ids}. Release them to create new versions or revisions."msgstr "打开于变更通知 {ids}。下达它们来创建新版本或修订版。"