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
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import type { JSONContent } from "@carbon/react";
import { Text, View } from "@react-pdf/renderer";
import { Note } from "../components";
import { useTw } from "./tw";
import type { SalesInvoiceData } from "./types";
export function NotesBlock({ data }: { data: SalesInvoiceData }) {
const tw = useTw();
const { salesInvoice } = data;
return (
<View style={tw("border border-gray-200 mb-4")}>
<View style={tw("p-3")}>
<Text style={tw("text-[9px] font-bold text-gray-600 mb-1 uppercase")}>
Notes
</Text>
<View style={tw("text-[9px] text-gray-800")}>
{Object.keys(salesInvoice?.externalNotes ?? {}).length > 0 ? (
<Note content={(salesInvoice.externalNotes ?? {}) as JSONContent} />
) : (
<Text style={tw("text-gray-400")}>None</Text>
)}
</View>
</View>
</View>
);
}