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
tooltips added
aashu672bce0dbb09
diff --git a/apps/erp/app/components/Form/ConversionFactor.tsx b/apps/erp/app/components/Form/ConversionFactor.tsxindex c093fd3634..9a5ef5ca66 100644--- a/apps/erp/app/components/Form/ConversionFactor.tsx+++ b/apps/erp/app/components/Form/ConversionFactor.tsx@@ -1,4 +1,6 @@+import { LabelWithHelp } from "@carbon/field-help";import { useControlField, useField } from "@carbon/form";+import type { TermId } from "@carbon/glossary";import {Button,CommandTrigger,@@ -40,6 +42,7 @@ enum ConversionDirection {type ConversionFactorProps = {name: string;label?: string;+ termId?: TermId;inventoryCode?: string;purchasingCode?: string;isReadOnly?: boolean;@@ -57,6 +60,7 @@ const ConversionFactor = forwardRef<{name,label = "Conversion Factor",+ termId,isRequired,isReadOnly,helperText,@@ -192,7 +196,7 @@ const ConversionFactor = forwardRef<<FormControl isInvalid={!!error} isRequired={isRequired}>{label && (<FormLabel htmlFor={name} isOptional={resolvedIsOptional}>- {label}+ <LabelWithHelp termId={termId}>{label}</LabelWithHelp></FormLabel>)}<inputdiff --git a/apps/erp/app/components/Form/SequenceOrCustomId.tsx b/apps/erp/app/components/Form/SequenceOrCustomId.tsxindex dd04e25618..1ab6523687 100644--- a/apps/erp/app/components/Form/SequenceOrCustomId.tsx+++ b/apps/erp/app/components/Form/SequenceOrCustomId.tsx@@ -1,4 +1,6 @@+import { LabelWithHelp } from "@carbon/field-help";import { useField } from "@carbon/form";+import type { TermId } from "@carbon/glossary";import type { InputProps } from "@carbon/react";import {Button,@@ -17,6 +19,7 @@ import { LuToggleLeft, LuToggleRight } from "react-icons/lu";type SequenceOrCustomIdProps = InputProps & {name: string;label: string;+ termId?: TermId;table: string;placeholder?: string;isOptional?: boolean;@@ -31,6 +34,7 @@ const SequenceOrCustomId = forwardRef<{name,label,+ termId,table,isOptional,helperText,@@ -53,7 +57,7 @@ const SequenceOrCustomId = forwardRef<<FormControl isInvalid={!!error}>{label && (<FormLabel htmlFor={name} isOptional={resolvedIsOptional}>- {label}+ <LabelWithHelp termId={termId}>{label}</LabelWithHelp></FormLabel>)}<div className="flex flex-grow items-start min-w-0 relative">diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassForm.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassForm.tsxindex 53ce5b5ad6..c21680785a 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassForm.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassForm.tsx@@ -106,6 +106,7 @@ const AssetClassForm = ({<Selectname="depreciationMethod"label="Depreciation Method"+ termId="depreciation"options={depreciationMethods.map((m) => ({label: m,value: m@@ -119,6 +120,7 @@ const AssetClassForm = ({<Numbername="residualValuePercent"label="Residual Value %"+ termId="residual-value"minValue={0}maxValue={100}/>@@ -130,11 +132,13 @@ const AssetClassForm = ({<Accountname="accumulatedDepreciationAccountId"label="Accumulated Depreciation Account"+ termId="depreciation"classes={["Asset"]}/><Accountname="depreciationExpenseAccountId"label="Depreciation Expense Account"+ termId="depreciation"classes={["Expense"]}/><Account@@ -150,6 +154,7 @@ const AssetClassForm = ({<Accountname="disposalAccountId"label="Disposal Account"+ termId="disposal"classes={["Revenue", "Expense"]}/>@@ -163,6 +168,7 @@ const AssetClassForm = ({<Selectname="taxDepreciationMethod"label="Tax Method"+ termId="depreciation"placeholder="Same as Book"isOptionaloptions={taxDepreciationMethods.map((m) => ({@@ -177,6 +183,7 @@ const AssetClassForm = ({<Selectname="macrsPropertyClass"label="Recovery Period"+ termId="macrs"options={macrsPropertyClasses.map((c) => ({label: `${c}-Year Property`,value: c@@ -185,6 +192,7 @@ const AssetClassForm = ({<Selectname="macrsConvention"label="Convention"+ termId="macrs"options={macrsConventions.map((c) => ({label: c,value: c@@ -193,6 +201,7 @@ const AssetClassForm = ({<Numbername="bonusDepreciationPercent"label="Bonus Depreciation %"+ termId="depreciation"minValue={0}maxValue={100}/>@@ -210,6 +219,7 @@ const AssetClassForm = ({<Numbername="taxResidualValuePercent"label="Tax Residual Value %"+ termId="residual-value"minValue={0}maxValue={100}/>diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetDisposalForm.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetDisposalForm.tsxindex 2bbbd333dd..e89a14dc41 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetDisposalForm.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetDisposalForm.tsx@@ -65,7 +65,11 @@ const FixedAssetDisposalForm = ({<p className="text-sm text-muted-foreground">This will write off the remaining book value of the asset.</p>- <DatePicker name="disposalDate" label="Disposal Date" />+ <DatePicker+ name="disposalDate"+ label="Disposal Date"+ termId="disposal"+ /></VStack></ModalDrawerBody><ModalDrawerFooter>diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetForm.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetForm.tsxindex ed9a2a132a..2188f12cab 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetForm.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetForm.tsx@@ -134,6 +134,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<AssetClassname="fixedAssetClassId"label="Asset Class"+ termId="asset-class"value={assetData.fixedAssetClassId}onChange={onAssetClassChange}/>@@ -142,6 +143,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<SelectControlledname="depreciationMethod"label="Depreciation Method"+ termId="depreciation"options={depreciationMethods.map((m) => ({label: m,value: m@@ -167,6 +169,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<NumberControlledname="residualValuePercent"label="Residual Value %"+ termId="residual-value"minValue={0}maxValue={100}value={assetData.residualValuePercent}@@ -191,6 +194,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<SelectControlledname="taxDepreciationMethod"label="Tax Depreciation Method"+ termId="depreciation"placeholder="None"options={taxDepreciationMethods.map((m) => ({label: m,@@ -214,6 +218,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<SelectControlledname="macrsPropertyClass"label="MACRS Property Class"+ termId="macrs"isOptional={false}options={macrsPropertyClasses.map((c) => ({label: `${c}-Year`,@@ -231,6 +236,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<SelectControlledname="macrsConvention"label="MACRS Convention"+ termId="macrs"isOptional={false}options={macrsConventions.map((c) => ({label: c,@@ -248,6 +254,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<NumberControlledname="bonusDepreciationPercent"label="Bonus Depreciation %"+ termId="depreciation"minValue={0}maxValue={100}value={assetData.bonusDepreciationPercent}@@ -282,6 +289,7 @@ const FixedAssetForm = ({ initialValues, onClose }: FixedAssetFormProps) => {<NumberControlledname="taxResidualValuePercent"label="Tax Residual Value %"+ termId="residual-value"minValue={0}maxValue={100}value={assetData.taxResidualValuePercent}diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetRegisterForm.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetRegisterForm.tsxindex 35a0eb0c3b..87eba16cd6 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetRegisterForm.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetRegisterForm.tsx@@ -64,6 +64,7 @@ const FixedAssetRegisterForm = ({ onClose }: FixedAssetRegisterFormProps) => {<Numbername="accumulatedDepreciation"label="Accumulated Depreciation"+ termId="depreciation"minValue={0}formatOptions={{style: "currency",@@ -73,6 +74,7 @@ const FixedAssetRegisterForm = ({ onClose }: FixedAssetRegisterFormProps) => {<DatePickername="depreciationStartDate"label="Depreciation Start Date"+ termId="depreciation"/></VStack></ModalDrawerBody>diff --git a/apps/erp/app/modules/accounting/ui/Intercompany/IntercompanyTransactionForm.tsx b/apps/erp/app/modules/accounting/ui/Intercompany/IntercompanyTransactionForm.tsxindex 4a8edb72fa..e6cc465340 100644--- a/apps/erp/app/modules/accounting/ui/Intercompany/IntercompanyTransactionForm.tsx+++ b/apps/erp/app/modules/accounting/ui/Intercompany/IntercompanyTransactionForm.tsx@@ -80,7 +80,12 @@ const IntercompanyTransactionForm = ({<Input name="description" label="Description" /><Account name="debitAccountId" label="Debit Account" /><Account name="creditAccountId" label="Credit Account" />- <Input name="postingDate" label="Posting Date" type="date" />+ <Input+ name="postingDate"+ label="Posting Date"+ termId="posting"+ type="date"+ /></VStack></ModalDrawerBody><ModalDrawerFooter>diff --git a/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntryForm.tsx b/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntryForm.tsxindex 2810bd2c99..22b539c581 100644--- a/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntryForm.tsx+++ b/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntryForm.tsx@@ -283,6 +283,7 @@ const JournalEntryForm = ({<DatePickername="postingDate"label="Posting Date"+ termId="posting"isDisabled={isDisabled}/></div>diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsxindex ea281845ac..56971e97ac 100644--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsx+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryStorageUnits.tsx@@ -427,11 +427,13 @@ const InventoryStorageUnits = ({<Inputname="readableId"label={isSerial ? t`Serial Number` : t`Batch Number`}+ termId={isSerial ? "serial" : "batch"}/>{showExpirationField && (<DatePickername="expirationDate"label={t`Expiration Date`}+ termId="shelf-life"/>)}</>diff --git a/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx b/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsxindex f2d28e762e..48118ac0f2 100644--- a/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx+++ b/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx@@ -221,6 +221,7 @@ const KanbanForm = ({ initialValues, onClose }: KanbanFormProps) => {value={selectedReplenishmentSystem}name="replenishmentSystem"label={t`Replenishment System`}+ termId="replenishment-system"onChange={(value) => {if (value) {setSelectedReplenishmentSystem(value.value);diff --git a/apps/erp/app/modules/inventory/ui/Traceability/EditExpiryModal.tsx b/apps/erp/app/modules/inventory/ui/Traceability/EditExpiryModal.tsxindex 1d84869192..a3606379cd 100644--- a/apps/erp/app/modules/inventory/ui/Traceability/EditExpiryModal.tsx+++ b/apps/erp/app/modules/inventory/ui/Traceability/EditExpiryModal.tsx@@ -75,6 +75,7 @@ export function EditExpiryModal({<DatePickername="expirationDate"label={t`New expiration date`}+ termId="shelf-life"helperText={t`Pick a date or leave blank to clear it.`}/><TextAreadiff --git a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferForm.tsx b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferForm.tsxindex 24f9e63671..b0b439810a 100644--- a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferForm.tsx+++ b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferForm.tsx@@ -364,6 +364,7 @@ const WarehouseTransferForm = ({<DatePickername="expectedReceiptDate"label={t`Expected Receipt Date`}+ termId="receipt"/></>)}diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsxindex 37638d553c..925f49a9cf 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx@@ -794,6 +794,7 @@ const PurchaseInvoiceLineForm = ({<CostCentername="costCenterId"label={t`Cost Center`}+ termId="cost-center"isOptional/></>@@ -802,6 +803,7 @@ const PurchaseInvoiceLineForm = ({<Comboboxname="assetId"label={t`Fixed Asset`}+ termId="fixed-asset"isOptional={false}options={assetOptions}value={indirectData.assetId}diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsxindex 24d5d687af..3b1268f8f0 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx@@ -530,6 +530,7 @@ const SalesInvoiceLineForm = ({<SelectControlledname="methodType"label={t`Method`}+ termId="method-type"options={methodType.map((m) => ({label: (@@ -778,6 +779,7 @@ const SalesInvoiceLineForm = ({<Comboboxname="assetId"label={t`Fixed Asset`}+ termId="fixed-asset"isOptional={false}options={assetOptions}value={assetData.assetId}diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsxindex 822a1388cf..9a74c91d1f 100644--- a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx@@ -155,12 +155,14 @@ const ConsumableForm = ({<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"options={itemTrackingTypeOptions}/><DefaultMethodTypename="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"replenishmentSystem="Buy"value={defaultMethodType}onChange={(newValue) =>diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsxindex 6752ff767d..fb32199d86 100644--- a/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx@@ -330,6 +330,7 @@ const ConsumableProperties = ({ data }: ConsumablePropertiesProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"inline={(value) => (<Badge variant="secondary"><TrackingTypeIcon type={value} className="mr-2" />@@ -364,6 +365,7 @@ const ConsumableProperties = ({ data }: ConsumablePropertiesProps) => {<Selectname="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"inline={(value) => (<Badge variant="secondary"><MethodIcon type={value} className="mr-2" />diff --git a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsxindex 4865630633..fe5a0e1e76 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx@@ -988,6 +988,7 @@ function MaterialForm({<DefaultMethodTypename="methodType"label={t`Method Type`}+ termId="method-type"value={itemData.methodType}isReadOnlyisConfigured={rulesByField.has(key("methodType"))}diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsxindex c745fa0277..670af24e56 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx@@ -1244,6 +1244,7 @@ function OperationForm({<WorkCentername="workCenterId"label={t`Work Center`}+ termId="work-center"isOptionalprocessId={processData.processId}isConfigured={rulesByField.has(key("workCenterId"))}diff --git a/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsxindex a4fc8ea21f..ace24a1d93 100644--- a/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx@@ -65,6 +65,7 @@ const ItemCostingForm = ({ initialValues }: ItemCostingFormProps) => {<Selectname="costingMethod"label={t`Costing Method`}+ termId="costing-method"options={itemCostingMethods.map((method) => ({label: method,value: methoddiff --git a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemForm.tsxindex 4631ed4f31..5f94a8bdd9 100644--- a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemForm.tsx@@ -152,12 +152,14 @@ const ItemForm = ({ initialValues, type }: ItemFormProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"options={itemTrackingTypeOptions}/><Selectname="replenishmentSystem"label={t`Replenishment System`}+ termId="replenishment-system"options={itemReplenishmentSystemOptions}onChange={(newValue) => {setReplenishmentSystem(newValue?.value ?? "Buy");@@ -171,6 +173,7 @@ const ItemForm = ({ initialValues, type }: ItemFormProps) => {<DefaultMethodTypename="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"replenishmentSystem={replenishmentSystem}value={defaultMethodType}onChange={(newValue) =>diff --git a/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsxindex 8a50b5c647..e9446423c8 100644--- a/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx@@ -58,11 +58,16 @@ const ItemManufacturingForm = ({<Numbername="scrapPercentage"label={t`Scrap Percent`}+ termId="scrap"formatOptions={{style: "percent"}}/>- <Number name="leadTime" label={t`Lead Time (Days)`} />+ <Number+ name="leadTime"+ label={t`Lead Time (Days)`}+ termId="lead-time"+ />{/* <Booleanname="manufacturingBlocked"label={t`Manufacturing Blocked`}diff --git a/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsxindex 122d78fa9c..70d404acc2 100644--- a/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx@@ -85,6 +85,7 @@ const ItemPlanningForm = ({<SelectFormname="reorderingPolicy"label={t`Reordering Policy`}+ termId="reordering-policy"options={itemReorderingPolicies.map((policy) => ({label: <ItemReorderPolicy reorderingPolicy={policy} />,value: policy@@ -99,6 +100,7 @@ const ItemPlanningForm = ({<Numbername="reorderPoint"label={t`Reorder Point`}+ termId="reorder-point"minValue={0}/><Number@@ -128,6 +130,7 @@ const ItemPlanningForm = ({<Numbername="reorderPoint"label={t`Reorder Point`}+ termId="reorder-point"minValue={0}/><Numberdiff --git a/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsxindex afae0bb039..c62e8dfd36 100644--- a/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx@@ -98,7 +98,11 @@ const ItemPurchasingForm = ({</div>}/>- <Number name="leadTime" label={t`Lead Time (Days)`} />+ <Number+ name="leadTime"+ label={t`Lead Time (Days)`}+ termId="lead-time"+ /><UnitOfMeasurename="purchasingUnitOfMeasureCode"label={t`Purchasing Unit of Measure`}diff --git a/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx b/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsxindex b2f7773c69..d4a8d94b00 100644--- a/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx@@ -413,6 +413,7 @@ function ShelfLifeFields({<NumberControlledname="shelfLifeDays"label={t`Shelf Life (Days)`}+ termId="shelf-life"minValue={1}value={shelfLifeDays ?? defaultShelfLifeDays}/>@@ -439,6 +440,7 @@ function ShelfLifeFields({<Booleanname="shelfLifeCalculateFromBom"label={t`Calculate from BOM`}+ termId="bom"description={t`Output never outlasts its raw materials. Falls back to the fixed duration when no input has an expiry date.`}value={!!shelfLifeCalculateFromBom}onChange={(v) => setShelfLifeCalculateFromBom(v)}diff --git a/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx b/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsxindex 61cf4b582e..b8393f31e5 100644--- a/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx@@ -199,6 +199,7 @@ const SupplierPartForm = ({<ConversionFactorname="conversionFactor"label={t`Conversion Factor`}+ termId="conversion-factor"inventoryCode={unitOfMeasureCode ?? undefined}purchasingCode={purchaseUnitOfMeasure}/>diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsxindex f042674787..4bb7dfab52 100644--- a/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx+++ b/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx@@ -289,12 +289,14 @@ const MaterialForm = ({<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"options={itemTrackingTypeOptions}/><DefaultMethodTypename="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"replenishmentSystem="Buy"value={defaultMethodType}onChange={(newValue) =>diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsxindex c46ec1ee42..1db1274067 100644--- a/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx+++ b/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx@@ -453,6 +453,7 @@ const MaterialProperties = ({ data }: MaterialPropertiesProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"inline={(value) => (<Badge variant="secondary"><TrackingTypeIcon type={value} className="mr-2" />@@ -487,6 +488,7 @@ const MaterialProperties = ({ data }: MaterialPropertiesProps) => {<Selectname="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"inline={(value) => (<Badge variant="secondary"><MethodIcon type={value} className="mr-2" />diff --git a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx b/apps/erp/app/modules/items/ui/Parts/PartForm.tsxindex 5e47989e2f..f1b739651c 100644--- a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx+++ b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx@@ -284,6 +284,7 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {<Selectname="replenishmentSystem"label={t`Replenishment System`}+ termId="replenishment-system"options={itemReplenishmentSystemOptions}onChange={(newValue) => {setReplenishmentSystem(newValue?.value ?? "Buy");@@ -297,11 +298,13 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"options={itemTrackingTypeOptions}/><DefaultMethodTypename="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"replenishmentSystem={replenishmentSystem}value={defaultMethodType}onChange={(newValue) =>diff --git a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsxindex 60ed92d7c0..9c2d4293b1 100644--- a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx+++ b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx@@ -355,6 +355,7 @@ const PartProperties = ({ data }: PartPropertiesProps) => {<Selectname="replenishmentSystem"label={t`Replenishment`}+ termId="replenishment-system"inline={(value) => (<Badge variant="secondary"><ReplenishmentSystemIcon type={value} className="mr-2" />@@ -399,6 +400,7 @@ const PartProperties = ({ data }: PartPropertiesProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"inline={(value) => (<Badge variant="secondary"><TrackingTypeIcon type={value} className="mr-2" />@@ -447,6 +449,7 @@ const PartProperties = ({ data }: PartPropertiesProps) => {<Selectname="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"inline={(value) => (<Badge variant="secondary"><MethodIcon type={value} className="mr-2" />diff --git a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsxindex 66ef2f11d8..1f68c93abb 100644--- a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx+++ b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx@@ -277,6 +277,7 @@ const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {<Selectname="replenishmentSystem"label={t`Replenishment System`}+ termId="replenishment-system"options={itemReplenishmentSystemOptions}onChange={(newValue) => {setReplenishmentSystem(newValue?.value ?? "Buy");@@ -290,11 +291,13 @@ const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"options={itemTrackingTypeOptions}/><DefaultMethodTypename="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"replenishmentSystem={replenishmentSystem}value={defaultMethodType}onChange={(newValue) =>diff --git a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsxindex 0351b2a349..ae62662574 100644--- a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx+++ b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx@@ -333,6 +333,7 @@ const ToolProperties = ({ data }: ToolPropertiesProps) => {<Selectname="replenishmentSystem"label={t`Replenishment`}+ termId="replenishment-system"inline={(value) => (<Badge variant="secondary"><ReplenishmentSystemIcon type={value} className="mr-2" />@@ -377,6 +378,7 @@ const ToolProperties = ({ data }: ToolPropertiesProps) => {<Selectname="itemTrackingType"label={t`Tracking Type`}+ termId="tracked-entity"inline={(value) => (<Badge variant="secondary"><TrackingTypeIcon type={value} className="mr-2" />@@ -425,6 +427,7 @@ const ToolProperties = ({ data }: ToolPropertiesProps) => {<Selectname="defaultMethodType"label={t`Default Method Type`}+ termId="method-type"inline={(value) => (<Badge variant="secondary"><MethodIcon type={value} className="mr-2" />diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsxindex 9542c311f0..eaa59d79a1 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx@@ -960,6 +960,7 @@ function MaterialForm({<DefaultMethodTypename="methodType"label={t`Method Type`}+ termId="method-type"value={itemData.methodType}onChange={(value) => {setItemData((d) => ({@@ -1033,6 +1034,7 @@ function MaterialForm({<Selectname="jobOperationId"label={t`Operation`}+ termId="operation"isClearableoptions={jobOperations.map((o) => ({value: o.id!,diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 16569d1f14..2a2bb68150 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -2442,6 +2442,7 @@ function OperationForm({<WorkCentername="workCenterId"label={t`Work Center`}+ termId="work-center"autoSelectSingleOption={Boolean(processData.processId)}locationId={locationId}isOptional={["Draft", "Planned"].includes(job?.status ?? "")}diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsxindex 449e4c190e..eea7f37084 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx@@ -366,6 +366,7 @@ const JobMakeMethodTools = ({ makeMethod }: { makeMethod?: JobMakeMethod }) => {<Itemname="sourceId"label={t`Source Method`}+ termId="method"type={(routeData?.job.itemType ?? "Part") as "Part"}blacklist={configurableItemIds}includeInactive={includeInactive === true}@@ -471,6 +472,7 @@ const JobMakeMethodTools = ({ makeMethod }: { makeMethod?: JobMakeMethod }) => {<Itemname="itemId"label={t`Target Method`}+ termId="method"type={(routeData?.job?.itemType ?? "Part") as "Part"}blacklist={configurableItemIds}locationId={routeData?.job?.locationId ?? undefined}diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsxindex e8b84fa086..52c1ef38cf 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx@@ -201,6 +201,7 @@ const JobMaterialForm = ({<Selectname="jobOperationId"label={t`Operation`}+ termId="operation"isClearableoptions={operations.map((o) => ({value: o.id!,@@ -211,6 +212,7 @@ const JobMaterialForm = ({<DefaultMethodTypename="methodType"label={t`Method Type`}+ termId="method-type"value={itemData.methodType}replenishmentSystem={itemData.itemReplenishmentSystem}/>diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionEventForm.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionEventForm.tsxindex 4952e6cca7..2ce75e3813 100644--- a/apps/erp/app/modules/production/ui/Jobs/ProductionEventForm.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionEventForm.tsx@@ -91,12 +91,14 @@ const ProductionEventForm = ({<Selectname="jobOperationId"label={t`Operation`}+ termId="operation"options={operationOptions ?? []}/><Employee name="employeeId" label={t`Employee`} /><WorkCentername="workCenterId"label={t`Work Center`}+ termId="work-center"processId={initialValues.jobOperationId}/><Selectdiff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsxindex f644ba6e5b..7fb12a87ed 100644--- a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx@@ -82,6 +82,7 @@ const ProductionQuantityForm = ({<Selectname="jobOperationId"label={t`Operation`}+ termId="operation"options={operationOptions ?? []}/>)}@@ -100,7 +101,11 @@ const ProductionQuantityForm = ({}/>{type === "Scrap" && (- <ScrapReason name="scrapReasonId" label={t`Scrap Reason`} />+ <ScrapReason+ name="scrapReasonId"+ label={t`Scrap Reason`}+ termId="scrap"+ />)}<TextArea name="notes" label={t`Notes`} /></VStack>diff --git a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsxindex ebd3d146e6..1cec2b0aac 100644--- a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx+++ b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx@@ -87,7 +87,7 @@ const ScrapReasonForm = ({<Hidden name="id" /><Hidden name="type" value={type} /><VStack spacing={4}>- <Input name="name" label={t`Scrap Reason`} />+ <Input name="name" label={t`Scrap Reason`} termId="scrap" /><CustomFormFields table="scrapReason" /></VStack></ModalDrawerBody>diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsxindex 2804617155..5dd2d4ff22 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx@@ -152,6 +152,7 @@ const PurchaseOrderDeliveryForm = forwardRef<<Booleanname="dropShipment"label={t`Drop Shipment`}+ termId="drop-ship"borderedonChange={setDropShip}/>diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsxindex 97b718de3e..d93bba114f 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx@@ -883,6 +883,7 @@ const PurchaseOrderLineForm = ({<CostCentername="costCenterId"label={t`Cost Center`}+ termId="cost-center"isOptional/></>diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsxindex 0d7f5f356d..fab41e7bdd 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx@@ -127,6 +127,7 @@ const SupplierProcessForm = ({<Numbername="leadTime"label={t`Standard Lead Time`}+ termId="lead-time"minValue={0}/>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsxindex 47f16f2322..c0a5e7cabc 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx@@ -405,6 +405,7 @@ const SupplierQuoteLineForm = ({<CostCentername="costCenterId"label={t`Cost Center`}+ termId="cost-center"isOptional/><DatePickerdiff --git a/apps/erp/app/modules/quality/ui/Issue/IssueForm.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueForm.tsxindex 71bac2fff1..415940b0f9 100644--- a/apps/erp/app/modules/quality/ui/Issue/IssueForm.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/IssueForm.tsx@@ -131,6 +131,7 @@ const IssueForm = ({<Selectname="nonConformanceTypeId"label={t`Issue Type`}+ termId="nonconformance"options={nonConformanceTypes.map((type) => ({label: type.name,value: type.iddiff --git a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsxindex c0e89039db..dc5e7596de 100644--- a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx@@ -291,6 +291,7 @@ const IssueProperties = () => {}))}isReadOnly={disableStructureUpdate}label={t`Issue Type`}+ termId="nonconformance"name="nonConformanceTypeId"inline={(value, options) => {return (diff --git a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsxindex b8bb73d8e0..e49c15c649 100644--- a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx+++ b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx@@ -89,7 +89,11 @@ const IssueTypeForm = ({<Hidden name="id" /><Hidden name="type" value={type} /><VStack spacing={4}>- <Input name="name" label={t`Non Conformance Type`} />+ <Input+ name="name"+ label={t`Non Conformance Type`}+ termId="nonconformance"+ /><CustomFormFields table="nonConformanceType" /></VStack></ModalDrawerBody>diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsxindex 43c2d0c45b..bdceac1a81 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx@@ -448,7 +448,11 @@ function NewTimecardModal({<Hidden name="maintenanceDispatchId" value={dispatchId} /><VStack spacing={4}><Employee name="employeeId" label={t`Employee`} />- <WorkCenter name="workCenterId" label={t`Work Center`} />+ <WorkCenter+ name="workCenterId"+ label={t`Work Center`}+ termId="work-center"+ /><DateTimePicker name="startTime" label={t`Start Time`} /><DateTimePicker name="endTime" label={t`End Time`} /><TextArea name="notes" label={t`Notes`} />@@ -519,7 +523,11 @@ function EditTimecardModal({<Hidden name="maintenanceDispatchId" value={dispatchId} /><VStack spacing={4}><Employee name="employeeId" label={t`Employee`} />- <WorkCenter name="workCenterId" label={t`Work Center`} />+ <WorkCenter+ name="workCenterId"+ label={t`Work Center`}+ termId="work-center"+ /><DateTimePicker name="startTime" label={t`Start Time`} /><DateTimePicker name="endTime" label={t`End Time`} /><TextArea name="notes" label={t`Notes`} />diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchForm.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchForm.tsxindex 2e667d1ace..836c9105d2 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchForm.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchForm.tsx@@ -184,7 +184,11 @@ const MaintenanceDispatchForm = ({label: <MaintenanceSeverity severity={severity} />}))}/>- <WorkCenter name="workCenterId" label={t`Work Center`} />+ <WorkCenter+ name="workCenterId"+ label={t`Work Center`}+ termId="work-center"+ /><Location name="locationId" label={t`Location`} /><Selectname="oeeImpact"diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchProperties.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchProperties.tsxindex 5305fba5b3..8922cb505c 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchProperties.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchProperties.tsx@@ -253,6 +253,7 @@ const MaintenanceDispatchProperties = () => {isReadOnly={isLocked || !permissions.can("update", "resources")}label={t`Work Center`}name="workCenterId"+ termId="work-center"inlineisClearableonChange={(value) => {diff --git a/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceScheduleForm.tsx b/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceScheduleForm.tsxindex 471b108467..20d1d05f26 100644--- a/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceScheduleForm.tsx+++ b/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceScheduleForm.tsx@@ -164,7 +164,11 @@ const MaintenanceScheduleForm = ({<Hidden name="type" value={type} /><VStack spacing={4}><Input name="name" label={t`Schedule Name`} />- <WorkCenter name="workCenterId" label={t`Work Center`} />+ <WorkCenter+ name="workCenterId"+ label={t`Work Center`}+ termId="work-center"+ /><Location name="locationId" label={t`Location`} /><Selectname="frequency"diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsxindex bf2b1eb017..fb361d647d 100644--- a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx@@ -139,7 +139,11 @@ const ProcessForm = ({label={t`Default Unit`}value={initialValues.defaultStandardFactor}/>- <WorkCenters name="workCenters" label={t`Work Centers`} />+ <WorkCenters+ name="workCenters"+ label={t`Work Centers`}+ termId="work-center"+ /></>)}{processType !== "Inside" && (diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsxindex b0c15d4b56..41e5d75b9f 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx@@ -981,6 +981,7 @@ function MaterialForm({}));}}replenishmentSystem={itemData.itemReplenishmentSystem}+ termId="method-type"/><StorageUnitname="storageUnitId"@@ -1050,6 +1051,7 @@ function MaterialForm({quoteOperationId: newValue?.value as string}));}}+ termId="operation"/></div></div>diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex 73be049ab8..39b2e0f69e 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -2087,6 +2087,7 @@ function OperationForm({onWorkCenterChange(value?.value as string);}}}+ termId="work-center"/>)}</div>diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteForm.tsxindex 20fd14a748..72755ef270 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteForm.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteForm.tsx@@ -168,7 +168,11 @@ const QuoteForm = ({ initialValues }: QuoteFormProps) => {}}}/>- <Input name="customerReference" label={t`Customer RFQ`} />+ <Input+ name="customerReference"+ label={t`Customer RFQ`}+ termId="rfq"+ /><CustomerContactname="customerContactId"label={t`Purchasing Contact`}@@ -195,7 +199,11 @@ const QuoteForm = ({ initialValues }: QuoteFormProps) => {isOptional/><Employee name="estimatorId" label={t`Estimator`} isOptional />- <Location name="locationId" label={t`Quote Location`} />+ <Location+ name="locationId"+ label={t`Quote Location`}+ termId="quote"+ /><DatePickername="dueDate"label={t`Due Date`}diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsxindex fc6a1ae444..9ca0cd8bee 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx@@ -71,6 +71,7 @@ export function QuoteLineMethodForm() {setQuoteLine(null);}}}+ termId="quote"/><SelectControlledname="quoteLineId"diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsxindex 523a162487..b46a4274e6 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx@@ -240,6 +240,7 @@ const QuoteMaterialForm = ({value: o.id!,label: o.description}))}+ termId="operation"/><DefaultMethodType@@ -247,6 +248,7 @@ const QuoteMaterialForm = ({label={t`Method Type`}value={itemData.methodType}replenishmentSystem={itemData.itemReplenishmentSystem}+ termId="method-type"/><NumberControlledname="quantity"diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsxindex 51d8245d86..bd61eb5d1a 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx@@ -349,6 +349,7 @@ const QuoteProperties = () => {onUpdate("locationId", value.value);}}}+ termId="quote"/></ValidatedForm>diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsxindex 90ea29bf47..275447738c 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx@@ -112,6 +112,7 @@ const QuoteShipmentForm = forwardRef<label={t`Shipment Location`}isReadOnly={isCustomer}isClearable+ termId="shipment"/><ShippingMethodname="shippingMethodId"diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsxindex d51b7d3eed..9551239d30 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx@@ -373,6 +373,7 @@ const SalesOrderProperties = () => {onUpdate("locationId", value.value);}}}+ termId="sales-order"/></ValidatedForm>diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsxindex 4dfc92ff18..a1f459fb82 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx@@ -126,6 +126,7 @@ const SalesOrderShipmentForm = forwardRef<label={t`Shipment Location`}isReadOnly={isCustomer}isClearable+ termId="shipment"/><ShippingMethodname="shippingMethodId"@@ -144,7 +145,11 @@ const SalesOrderShipmentForm = forwardRef<<DatePicker name="receiptRequestedDate" label={t`Requested Date`} /><DatePicker name="receiptPromisedDate" label={t`Promised Date`} />- <DatePicker name="shipmentDate" label={t`Shipment Date`} />+ <DatePicker+ name="shipmentDate"+ label={t`Shipment Date`}+ termId="shipment"+ /><Input name="trackingNumber" label={t`Tracking Number`} /><div className="col-span-3">@@ -153,6 +158,7 @@ const SalesOrderShipmentForm = forwardRef<label={t`Drop Shipment`}borderedonChange={setDropShip}+ termId="drop-ship"/></div>{dropShip && (diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQForm.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQForm.tsxindex 01e0f8335c..d883262560 100644--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQForm.tsx+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQForm.tsx@@ -156,7 +156,11 @@ const SalesRFQForm = ({ initialValues }: SalesRFQFormProps) => {label={t`Customer`}onChange={onCustomerChange}/>- <Input name="customerReference" label={t`Customer RFQ`} />+ <Input+ name="customerReference"+ label={t`Customer RFQ`}+ termId="rfq"+ /><CustomerContactname="customerContactId"label={t`Purchasing Contact`}@@ -179,6 +183,7 @@ const SalesRFQForm = ({ initialValues }: SalesRFQFormProps) => {label={t`RFQ Date`}helperText={t`The date you received this RFQ from the customer. Defaults to today.`}isDisabled={isCustomer}+ termId="rfq"/><DatePickername="expirationDate"@@ -186,7 +191,11 @@ const SalesRFQForm = ({ initialValues }: SalesRFQFormProps) => {helperText={t`The deadline to send your quote to the customer.`}isDisabled={isCustomer}/>- <Location name="locationId" label={t`RFQ Location`} />+ <Location+ name="locationId"+ label={t`RFQ Location`}+ termId="rfq"+ /><Employee name="salesPersonId" label={t`Sales Person`} /><CustomFormFields table="salesRfq" /></div>diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsxindex 28638ea0c4..89f7763034 100644--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx@@ -292,6 +292,7 @@ const SalesRFQProperties = () => {onChange={(date) => {onUpdate("rfqDate", date);}}+ termId="rfq"/></ValidatedForm>@@ -332,6 +333,7 @@ const SalesRFQProperties = () => {onUpdate("locationId", value.value);}}}+ termId="rfq"/></ValidatedForm>diff --git a/apps/erp/app/routes/x+/settings+/inventory.tsx b/apps/erp/app/routes/x+/settings+/inventory.tsxindex 9826934cbf..7e116a6802 100644--- a/apps/erp/app/routes/x+/settings+/inventory.tsx+++ b/apps/erp/app/routes/x+/settings+/inventory.tsx@@ -299,6 +299,7 @@ function ShelfLifeNumbers() {minValue={0}maxValue={365}helperText={t`Items inside this window get a yellow badge.`}+ termId="shelf-life"/><Numbername="defaultShelfLifeDays"@@ -306,6 +307,7 @@ function ShelfLifeNumbers() {minValue={1}maxValue={365}helperText={t`Pre-filled for a new item when expiry is Fixed Duration.`}+ termId="shelf-life"/></div>);diff --git a/packages/form/src/components/InputControlled.tsx b/packages/form/src/components/InputControlled.tsxindex 74d8ba93c7..1e95567c19 100644--- a/packages/form/src/components/InputControlled.tsx+++ b/packages/form/src/components/InputControlled.tsx@@ -1,4 +1,6 @@+import { LabelWithHelp } from "@carbon/field-help";import { useFormContext } from "@carbon/form";+import type { TermId } from "@carbon/glossary";import type { InputProps } from "@carbon/react";import {FormControl,@@ -22,6 +24,7 @@ import { useFormStateContext } from "../internal/formStateContext";type FormInputControlledProps = Omit<InputProps, "value" | "onChange"> & {name: string;label?: ReactNode;+ termId?: TermId;isConfigured?: boolean;isOptional?: boolean;isUppercase?: boolean;@@ -41,6 +44,7 @@ const InputControlled = forwardRef<HTMLInputElement, FormInputControlledProps>({name,label,+ termId,isConfigured,isOptional,isRequired,@@ -128,7 +132,7 @@ const InputControlled = forwardRef<HTMLInputElement, FormInputControlledProps>(isConfigured={isConfigured}onConfigure={onConfigure}>- {label}+ <LabelWithHelp termId={termId}>{label}</LabelWithHelp></FormLabel>)}{prefix || suffix ? (diff --git a/packages/form/src/components/NumberControlled.tsx b/packages/form/src/components/NumberControlled.tsxindex ee243e880e..0cba1a542e 100644--- a/packages/form/src/components/NumberControlled.tsx+++ b/packages/form/src/components/NumberControlled.tsx@@ -1,4 +1,6 @@+import { LabelWithHelp } from "@carbon/field-help";import { useFormContext } from "@carbon/form";+import type { TermId } from "@carbon/glossary";import type { NumberFieldProps } from "@carbon/react";import {FormControl,@@ -29,6 +31,7 @@ import { useFormStateContext } from "../internal/formStateContext";type FormNumberProps = NumberFieldProps & {name: string;label?: ReactNode;+ termId?: TermId;size?: "sm" | "md" | "lg";isOptional?: boolean;isRequired?: boolean;@@ -45,6 +48,7 @@ const Number = forwardRef<HTMLInputElement, FormNumberProps>({name,label,+ termId,size,isConfigured,isOptional,@@ -132,7 +136,7 @@ const Number = forwardRef<HTMLInputElement, FormNumberProps>(isConfigured={isConfigured}onConfigure={onConfigure}>- {label}+ <LabelWithHelp termId={termId}>{label}</LabelWithHelp></FormLabel>)}<NumberField