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.

fix: copy button bug in supplier quote share dropdown

Brad Barbinae9f4704881e
diff --git a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx
index 063c8fa86e..a3466d9f4a 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx
@@ -69,7 +69,7 @@ export default function PurchasingRFQExplorer() {
purchaseUnitOfMeasureCode: "EA",
inventoryUnitOfMeasureCode: "EA",
conversionFactor: 1,
- itemType: "Part" as MethodItemType
+ itemType: "Item" as MethodItemType
};
const isDisabled = isRfqLocked(purchasingRfqData?.rfqSummary.status);
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
index 2221b622fb..cfb6e9bfd2 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
@@ -41,7 +41,7 @@ import {
LuLoaderCircle,
LuPanelLeft,
LuPanelRight,
- LuShare,
+ LuShare2,
LuTrash,
LuTrophy
} from "react-icons/lu";
@@ -164,7 +164,7 @@ const QuoteHeader = () => {
routeData?.quote.status === "Sent" ? (
<Button
onClick={shareModal.onOpen}
- leftIcon={<LuShare />}
+ leftIcon={<LuShare2 />}
variant="secondary"
>
Share
diff --git a/apps/starter/app/components/AppSidebar.tsx b/apps/starter/app/components/AppSidebar.tsx
index 138d12124f..3b5459e85d 100644
--- a/apps/starter/app/components/AppSidebar.tsx
+++ b/apps/starter/app/components/AppSidebar.tsx
@@ -46,7 +46,7 @@ import {
LuMap,
LuSend,
LuSettings2,
- LuShare,
+ LuShare2,
LuSparkles,
LuTrash
} from "react-icons/lu";
@@ -287,7 +287,7 @@ export function NavProjects({
</DropdownMenuItem>
<DropdownMenuItem>
<DropdownMenuIcon
- icon={<LuShare className="text-muted-foreground" />}
+ icon={<LuShare2 className="text-muted-foreground" />}
/>
<span>Share Project</span>
</DropdownMenuItem>
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index cfe2950073..25666bceb5 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -94174,7 +94174,6 @@ export default {
"itemId",
"costingMethod",
"standardCost",
- "unitCost",
"costIsAdjusted",
"companyId",
"createdBy",
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 9fc7ddfd75..86d4d14506 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -8419,7 +8419,7 @@ export type Database = {
itemPostingGroupId: string | null
standardCost: number
tags: string[] | null
- unitCost: number
+ unitCost: number | null
updatedAt: string | null
updatedBy: string | null
}
@@ -8434,7 +8434,7 @@ export type Database = {
itemPostingGroupId?: string | null
standardCost?: number
tags?: string[] | null
- unitCost?: number
+ unitCost?: number | null
updatedAt?: string | null
updatedBy?: string | null
}
@@ -8449,7 +8449,7 @@ export type Database = {
itemPostingGroupId?: string | null
standardCost?: number
tags?: string[] | null
- unitCost?: number
+ unitCost?: number | null
updatedAt?: string | null
updatedBy?: string | null
}
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 9fc7ddfd75..86d4d14506 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -8419,7 +8419,7 @@ export type Database = {
itemPostingGroupId: string | null
standardCost: number
tags: string[] | null
- unitCost: number
+ unitCost: number | null
updatedAt: string | null
updatedBy: string | null
}
@@ -8434,7 +8434,7 @@ export type Database = {
itemPostingGroupId?: string | null
standardCost?: number
tags?: string[] | null
- unitCost?: number
+ unitCost?: number | null
updatedAt?: string | null
updatedBy?: string | null
}
@@ -8449,7 +8449,7 @@ export type Database = {
itemPostingGroupId?: string | null
standardCost?: number
tags?: string[] | null
- unitCost?: number
+ unitCost?: number | null
updatedAt?: string | null
updatedBy?: string | null
}
diff --git a/packages/react/src/Copy.tsx b/packages/react/src/Copy.tsx
index 139fe3ce81..470a5f2b11 100644
--- a/packages/react/src/Copy.tsx
+++ b/packages/react/src/Copy.tsx
@@ -20,7 +20,8 @@ const Copy = ({
}) => {
const [isCopied, setIsCopied] = useState(false);
- const handleCopy = () => {
+ const handleCopy = (e: React.MouseEvent<HTMLButtonElement>) => {
+ e.stopPropagation();
copyToClipboard(text);
setIsCopied(true);
setTimeout(() => setIsCopied(false), 1500);