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: quote bop work instruction image upload

Brad Barbind3767148e042
diff --git a/apps/carbon/app/modules/sales/sales.service.ts b/apps/carbon/app/modules/sales/sales.service.ts
index 61f08f7109..c3d22f2a34 100644
--- a/apps/carbon/app/modules/sales/sales.service.ts
+++ b/apps/carbon/app/modules/sales/sales.service.ts
@@ -596,14 +596,6 @@ export async function getQuoteCustomerDetails(
.single();
}
-export async function getQuoteDocuments(
- client: SupabaseClient<Database>,
- companyId: string,
- quoteId: string
-) {
- return client.storage.from("private").list(`${companyId}/quote/${quoteId}`);
-}
-
export async function getQuoteLine(
client: SupabaseClient<Database>,
quoteLineId: string
diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
index ef08ada598..596479df47 100644
--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
@@ -313,7 +313,7 @@ const QuoteBillOfProcess = ({
const onUploadImage = async (file: File) => {
const fileType = file.name.split(".").pop();
- const fileName = `${companyId}/quotes/${selectedItemId}/${nanoid()}.${fileType}`;
+ const fileName = `${companyId}/opportunity-line/${selectedItemId}/${nanoid()}.${fileType}`;
const result = await carbon?.storage
.from("private")
.upload(fileName, file, { upsert: true });