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.

style: don't collapse line item forms by default

Brad Barbin540abad96d4b
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
index b9f58c314d..a8286da70f 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
@@ -251,7 +251,7 @@ const PurchaseInvoiceLineForm = ({
<ModalCardProvider type={type}>
<ModalCard
onClose={onClose}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
isCollapsible={isEditing}
>
<ModalCardContent size="xxlarge">
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
index 03c86fafe7..b273b20632 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
@@ -265,7 +265,7 @@ const SalesInvoiceLineForm = ({
<ModalCard
onClose={onClose}
isCollapsible={isEditing}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
>
<ModalCardContent size="xxlarge">
<ValidatedForm
diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
index 20769610f3..b7f99dd997 100644
--- a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
@@ -16,7 +16,6 @@ import type { PostgrestResponse } from "@supabase/supabase-js";
import { useEffect, useState } from "react";
import type { z } from "zod";
import {
- Boolean,
CustomFormFields,
DefaultMethodType,
Hidden,
@@ -168,7 +167,6 @@ const ConsumableForm = ({
minValue={0}
/>
)}
- <Boolean name="active" label="Active" />
<CustomFormFields
table="consumable"
diff --git a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
index 26070a88ff..a8207d1bfa 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
@@ -26,7 +26,6 @@ import { LuCloudUpload } from "react-icons/lu";
import type { z } from "zod";
import { TrackingTypeIcon } from "~/components";
import {
- Boolean,
CustomFormFields,
DefaultMethodType,
Hidden,
@@ -298,7 +297,7 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {
{!isEditing && replenishmentSystem !== "Buy" && (
<Number name="lotSize" label="Batch Size" minValue={0} />
)}
- <Boolean name="active" label="Active" />
+
<CustomFormFields table="part" tags={initialValues.tags} />
</div>
<VStack spacing={2} className="mt-4 w-full">
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
index 6457b57db2..056681493f 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
@@ -25,7 +25,6 @@ import { useDropzone } from "react-dropzone";
import { LuCloudUpload } from "react-icons/lu";
import type { z } from "zod";
import {
- Boolean,
CustomFormFields,
DefaultMethodType,
Hidden,
@@ -291,7 +290,6 @@ const ToolForm = ({ initialValues, type = "card", onClose }: ToolFormProps) => {
isReadOnly={replenishmentSystem === "Make"}
/>
)}
- <Boolean name="active" label="Active" />
<CustomFormFields table="tool" tags={initialValues.tags} />
</div>
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
index 33d1db6d4f..746d9a42af 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
@@ -265,7 +265,7 @@ const PurchaseOrderLineForm = ({
<ModalCardProvider type={type}>
<ModalCard
onClose={onClose}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
isCollapsible={isEditing}
>
<ModalCardContent size="xxlarge">
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
index dbb9965579..7cbe12e9c3 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
@@ -165,7 +165,7 @@ const SupplierQuoteLineForm = ({
<ModalCardProvider type={type}>
<ModalCard
onClose={onClose}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
isCollapsible={isEditing}
>
<ModalCardContent size="xxlarge">
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
index 80ce4c84fe..78d6dfef51 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
@@ -252,7 +252,7 @@ const QuoteLineForm = ({
<ModalCardProvider type={type}>
<ModalCard
onClose={onClose}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
isCollapsible={isEditing}
>
<ModalCardContent size="xxlarge">
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
index 2c5270e3d1..c1e0aca906 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
@@ -198,7 +198,7 @@ const SalesOrderLineForm = ({
<ModalCard
onClose={onClose}
isCollapsible={isEditing}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
>
<ModalCardContent size="xxlarge">
<ValidatedForm
diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
index e1eff6bf10..c98306ca90 100644
--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQLineForm.tsx
@@ -183,7 +183,7 @@ const SalesRFQLineForm = ({
<ModalCard
onClose={onClose}
isCollapsible={isEditing}
- defaultCollapsed={isEditing}
+ defaultCollapsed={false}
>
<ModalCardContent>
<ValidatedForm