Skip to content

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.

refactor: rename Description to Short Description in line item create forms, and make read only

Rob Carrington9f5e6097cb50
diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx
index 661ead94ae..26667f38f3 100644
--- a/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx
+++ b/apps/carbon/app/modules/production/ui/Jobs/JobForm.tsx
@@ -191,7 +191,7 @@ const JobForm = ({ initialValues }: JobFormProps) => {
<InputControlled
name="description"
- label="Description"
+ label="Short Description"
value={itemData.description}
isReadOnly
className="col-span-2"
diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLineForm.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
index 4c14d339e8..4ecc25f1e0 100644
--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
@@ -266,11 +266,9 @@ const QuoteLineForm = ({
<InputControlled
name="description"
- label="Description"
+ label="Short Description"
value={itemData.description}
- onChange={(newValue) =>
- setItemData((d) => ({ ...d, description: newValue }))
- }
+ isReadOnly
/>
<SelectControlled
diff --git a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
index b1f007cb37..e2a40c06ec 100644
--- a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
+++ b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
@@ -266,11 +266,9 @@ const SalesOrderLineForm = ({
<InputControlled
name="description"
- label="Description"
+ label="Short Description"
value={itemData.description}
- onChange={(newValue) =>
- setItemData((d) => ({ ...d, description: newValue }))
- }
+ isReadOnly
/>
{lineType !== "Comment" && (
diff --git a/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx b/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
index 77bb91669e..01e2943a93 100644
--- a/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
+++ b/apps/carbon/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
@@ -280,11 +280,9 @@ const SalesRFQLineForm = ({
/>
<InputControlled
name="description"
- label="Description"
+ label="Short Description"
value={itemData.description}
- onChange={(newValue) => {
- setItemData((d) => ({ ...d, description: newValue }));
- }}
+ isReadOnly
/>
<UnitOfMeasure
name="unitOfMeasureCode"