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
Merge remote-tracking branch 'origin/main' into feat/mobile-redesign
aashu0efa3be28c43
diff --cc apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsxindex 3b4c6573d2,acf0b3e910..21add6062f--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsx+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsx@@@ -57,8 -72,16 +72,17 @@@ importimport ScrapReason from "~/components/Form/ScrapReason";import StorageUnit from "~/components/Form/StorageUnit";import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";+import { PhoneActionBar } from "~/components/Layout/Mobile/ChromeSlots";- import { usePermissions, usePrinting, useQuantityFormatter } from "~/hooks";+ import {+ useCompanyToday,+ useCurrencyDecimals,+ usePermissions,+ usePrinting,+ useQuantityFormatter,+ useSettings,+ useUser+ } from "~/hooks";+ import { useCurrencyFormatter } from "~/hooks/useCurrencyFormatter";import type {ItemStorageUnitQuantities,itemTrackingTypes,@@@ -595,17 -683,75 +692,86 @@@ const InventoryStorageUnits = (</div></CardContent></Card>+ {isQuantity ? (+ <PhoneActionBar>+ <Button+ size="lg"+ className="w-full"+ onClick={() => openAdjustmentModal()}+ >+ <Trans>Update Inventory</Trans>+ </Button>+ </PhoneActionBar>+ ) : null}+ {recostItem?.trackedEntityId && (+ <Modal+ open+ onOpenChange={(open) => {+ if (!open) setRecostItem(null);+ }}+ >+ <ModalContent>+ <ValidatedForm+ method="post"+ validator={serialUnitRecostValidator}+ action={path.to.inventoryItemRecost(pickMethod.itemId)}+ fetcher={recostFetcher}+ defaultValues={{+ trackedEntityId: recostItem.trackedEntityId,+ unitCost: unitCostOf(recostItem) ?? 0,+ offsetAccountId: retainedEarningsAccountId ?? "",+ postingDate: companyToday+ }}+ >+ <ModalHeader>+ <ModalTitle>+ <Trans>Recost {recostItem.readableId ?? ""}</Trans>+ </ModalTitle>+ </ModalHeader>+ <ModalBody>+ <Hidden name="trackedEntityId" />+ <VStack spacing={4}>+ <p className="text-sm text-muted-foreground">+ {accountingEnabled ? (+ <Trans>+ Sets what this unit is carried at in inventory. The+ difference is booked between inventory and the account+ the cost was spent from: Retained Earnings for an+ earlier year, or this year's labor or material expense.+ </Trans>+ ) : (+ <Trans>+ Sets what this unit is carried at in inventory.+ </Trans>+ )}+ </p>+ <NumberInput+ name="unitCost"+ label={t`Unit Cost`}+ minValue={0}+ formatOptions={INPUT_FORMAT.rate(+ company.baseCurrencyCode,+ currencyDecimals+ )}+ />+ {accountingEnabled && (+ <Account name="offsetAccountId" label={t`Offset Account`} />+ )}+ <DatePicker name="postingDate" label={t`Posting Date`} />+ </VStack>+ </ModalBody>+ <ModalFooter>+ <Button variant="secondary" onClick={() => setRecostItem(null)}>+ <Trans>Cancel</Trans>+ </Button>+ <Submit>+ <Trans>Recost</Trans>+ </Submit>+ </ModalFooter>+ </ValidatedForm>+ </ModalContent>+ </Modal>+ )}{adjustmentModal.isOpen && (<Modalopendiff --cc apps/erp/app/routes/x+/part+/$itemId.details.tsxindex 8fe656ea5f,a9754ce410..fbc2565dc5--- a/apps/erp/app/routes/x+/part+/$itemId.details.tsx+++ b/apps/erp/app/routes/x+/part+/$itemId.details.tsx@@@ -51,10 -51,11 +51,12 @@@ importMakeMethodTools} from "~/modules/items/ui/Item";import ItemManufacturingForm from "~/modules/items/ui/Item/ItemManufacturingForm";+import { methodVersionSlot } from "~/modules/items/ui/Item/MakeMethodTools";import { ConfigurationParametersForm } from "~/modules/items/ui/Parts";+ import { replanAfterItemChange } from "~/modules/production/production.server";import type { MethodItemType, MethodType } from "~/modules/shared";import { getTagsList } from "~/modules/shared";+ import { getDatabaseClient } from "~/services/database.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { path } from "~/utils/path";diff --cc packages/locale/locales/de/erp.poindex 9aadc2496f,b131ce871f..70d4571f14--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe hat noch keinen Kunden fmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe hat noch keinen Kunden für diesen Carbon-Kunden. Die Buchung wird einen auf Ihrem verbundenen Konto erstellen."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Standard des Stils"+msgid "Style of kanban output to show in the Kanban table"msgstr "Stil der Kanban-Ausgabe, die in der Kanban-Tabelle angezeigt werden soll"diff --cc packages/locale/locales/en/erp.poindex bd6a0e9a03,b24f08fdc5..5d48b44627--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe has no customer for thimsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."+msgid "Structure"+msgstr "Structure"++ msgid "Style default"+ msgstr "Style default"+msgid "Style of kanban output to show in the Kanban table"msgstr "Style of kanban output to show in the Kanban table"diff --cc packages/locale/locales/es/erp.poindex 96abf58a82,e1dab29e2d..d44cf04fd2--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe aún no tiene un Clientmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe aún no tiene un cliente para este cliente de Carbon. La contabilización creará uno en su cuenta conectada."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Predeterminado del estilo"+msgid "Style of kanban output to show in the Kanban table"msgstr "Estilo de salida de kanban para mostrar en la tabla Kanban"diff --cc packages/locale/locales/fr/erp.poindex 0ea3d10f15,b723e5ec66..7019b60c9b--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe n'a pas encore de clienmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe n'a pas encore de client pour ce client Carbon. La comptabilisation en créera un sur votre compte connecté."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Par défaut du style"+msgid "Style of kanban output to show in the Kanban table"msgstr "Style de sortie kanban à afficher dans le tableau Kanban"diff --cc packages/locale/locales/hi/erp.poindex d2c8e3bbfb,eb404045be..9c06049c06--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe के पास इसmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe के पास इस Carbon ग्राहक के लिए अभी कोई ग्राहक नहीं है। पोस्टिंग आपके जुड़े खाते पर एक नया ग्राहक बना देगी।"+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "शैली का डिफ़ॉल्ट"+msgid "Style of kanban output to show in the Kanban table"msgstr "कानबान तालिका में दिखाने के लिए कानबान आउटपुट की शैली"diff --cc packages/locale/locales/it/erp.poindex 70a573eec9,494ba8a03f..b1b8a49f34--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe non ha ancora un clientmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe non ha ancora un cliente per questo cliente Carbon. La registrazione ne creerà uno sul tuo account collegato."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Predefinito dello stile"+msgid "Style of kanban output to show in the Kanban table"msgstr "Stile dell'output kanban da mostrare nella tabella Kanban"diff --cc packages/locale/locales/ja/erp.poindex 28cfeb9d26,7d3ec52ffd..72c6a94837--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "StripeにはこのCarbon得意�msgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "StripeにはこのCarbon得意先に対応する顧客がまだありません。転記すると、接続済みアカウント上に作成されます。"+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "スタイルの既定"+msgid "Style of kanban output to show in the Kanban table"msgstr "かんばんテーブルに表示するかんばん出力のスタイル"diff --cc packages/locale/locales/ko/erp.poindex a6697888df,75ee1c5a45..6c35bccda9--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe에는 아직 이 Carbonmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "이 Carbon 고객에 대한 Stripe 고객이 아직 없습니다. 전기하면 연결된 계정에 생성됩니다."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "스타일 기본값"+msgid "Style of kanban output to show in the Kanban table"msgstr "칸반 테이블에 표시할 칸반 출력 스타일"diff --cc packages/locale/locales/pl/erp.poindex 0b63764d23,ecb142cff6..e46be599f4--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe nie ma jeszcze klienta dmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe nie ma jeszcze klienta dla tego klienta Carbon. Księgowanie utworzy go na twoim podłączonym koncie."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Domyślny dla stylu"+msgid "Style of kanban output to show in the Kanban table"msgstr "Styl wyjścia kanban do wyświetlenia w tabeli Kanban"diff --cc packages/locale/locales/pt/erp.poindex 04b6d8a9fb,e3a063f040..99cdcf2e00--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe não tem um cliente parmsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe ainda não tem um cliente para este cliente do Carbon. A Contabilização criará um na sua conta conectada."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Padrão do estilo"+msgid "Style of kanban output to show in the Kanban table"msgstr "Estilo de saída do kanban para mostrar na tabela Kanban"diff --cc packages/locale/locales/ru/erp.poindex dd307bf554,82f88677b3..c2e3f8f371--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "В Stripe еще нет пок�msgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe еще не имеет покупателя для этого покупателя Carbon. Проведение создаст его на вашем подключенном счете."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "По умолчанию для стиля"+msgid "Style of kanban output to show in the Kanban table"msgstr "Стиль вывода канбана для отображения в таблице Канбана"diff --cc packages/locale/locales/tr/erp.poindex 59f49fd129,bb82a3dbbe..9df17725ab--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe'ın henüz bu Carbon mümsgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Bu Carbon müşterisi için Stripe'da henüz müşteri yok. Muhasebeleştirme, bağlı hesabınızda bir tane oluşturacak."+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "Stil varsayılanı"+msgid "Style of kanban output to show in the Kanban table"msgstr "Kanban tablosunda gösterilecek kanban çıktısı stili"diff --cc packages/locale/locales/zh/erp.poindex 7aef28613b,d4e8292f3c..6490a3e0f8--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@@ -19836,9 -19742,9 +19954,12 @@@ msgstr "Stripe还没有为此Carbon客�msgid "Stripe has no customer for this Carbon customer yet. Posting will create one on your connected account."msgstr "Stripe还没有该Carbon客户对应的客户。过账将在您的连接账户上创建一个。"+msgid "Structure"+msgstr ""++ msgid "Style default"+ msgstr "风格默认"+msgid "Style of kanban output to show in the Kanban table"msgstr "看板输出在看板表中显示的样式"diff --cc packages/react/src/Avatar.tsxindex ec049dd4cd,74bef20845..43bfd0ed29--- a/packages/react/src/Avatar.tsx+++ b/packages/react/src/Avatar.tsx@@@ -72,9 -85,8 +85,9 @@@ const Avatar = forwardRef<HTMLSpanElemeclassName)}alt={name ?? "avatar"}+ data-avatar={size ?? "sm"}- src={src}- onError={() => setError(true)}+ src={imageSrc}+ onError={() => setFailedSrc(imageSrc)}/>) : (<span