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
fix: external notes on sales order pdf
Brad Barbinf1d7b981051d
diff --git a/packages/documents/src/pdf/SalesOrderPDF.tsx b/packages/documents/src/pdf/SalesOrderPDF.tsxindex 2c685778d3..bb05e5ccd7 100644--- a/packages/documents/src/pdf/SalesOrderPDF.tsx+++ b/packages/documents/src/pdf/SalesOrderPDF.tsx@@ -202,6 +202,14 @@ const SalesOrderPDF = ({<Text style={tw("text-[9px] opacity-80")}>{getLineDescriptionDetails(line)}</Text>+ <View style={tw("mt-1")}>+ {Object.keys(line.externalNotes ?? {}).length > 0 && (+ <Note+ key={`${line.id}-notes`}+ content={line.externalNotes as JSONContent}+ />+ )}+ </View></View><Text style={tw("w-1/6 text-right")}>{line.salesOrderLineType === "Comment"diff --git a/packages/documents/src/pdf/components/Note.tsx b/packages/documents/src/pdf/components/Note.tsxindex 1e74e07573..a9f218abbf 100644--- a/packages/documents/src/pdf/components/Note.tsx+++ b/packages/documents/src/pdf/components/Note.tsx@@ -12,7 +12,7 @@ const convertTiptapJSON = (switch (node.type) {case "doc":return (- <View style={{ fontSize: 11 }}>+ <View style={{ fontSize: 9 }}>{args?.title && (<View style={styles.thead}><Text>{args?.title}</Text>@@ -27,7 +27,7 @@ const convertTiptapJSON = (<Textkey={`heading-${node.attrs.level}`}style={{- fontSize: 16 - node.attrs.level * 2,+ fontSize: 13,fontWeight: "bold",marginBottom: 10,}}@@ -38,7 +38,7 @@ const convertTiptapJSON = (case "paragraph":return (- <Text key="paragraph" style={{ marginBottom: 10 }}>+ <Text key="paragraph" style={{ marginBottom: 10, fontSize: 9 }}>{node.content?.map((child) => convertTiptapJSON(child)) || ""}</Text>);@@ -75,7 +75,7 @@ const convertTiptapJSON = (key={`listItem-${args.index}`}style={{ flexDirection: "row", marginBottom: 5 }}>- <Text style={{ marginRight: 5 }}> {indicator} </Text>+ <Text style={{ marginRight: 5, fontSize: 9 }}> {indicator} </Text><View>{node.content.map((child, index) => convertTiptapJSON(child))}</View>@@ -97,7 +97,7 @@ const convertTiptapJSON = (key={`taskItem-${args.index}`}style={{ flexDirection: "row", marginBottom: 5 }}>- <Text style={{ marginRight: 5 }}>•</Text>+ <Text style={{ marginRight: 5, fontSize: 9 }}>•</Text><View>{node.content.map((child, index) => convertTiptapJSON(child))}</View>