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
feat: add tax percent to purchase order pdf
Brad Barbinac40fef94857
diff --git a/packages/documents/src/pdf/PurchaseOrderPDF.tsx b/packages/documents/src/pdf/PurchaseOrderPDF.tsxindex c1a048fc0d..7b8608f6d3 100644--- a/packages/documents/src/pdf/PurchaseOrderPDF.tsx+++ b/packages/documents/src/pdf/PurchaseOrderPDF.tsx@@ -393,9 +393,21 @@ const PurchaseOrderPDF = ({><View style={tw("w-[75%]")} /><Text style={tw("w-[12%] text-right text-gray-600")}>Tax</Text>- <Text style={tw("w-[13%] text-right text-gray-800")}>- {formatter.format(taxAmount)}- </Text>+ <View style={tw("w-[13%] flex flex-col items-end")}>+ <Text style={tw("text-gray-800")}>+ {formatter.format(taxAmount)}+ </Text>+ {(() => {+ const taxPercent = purchaseOrderLines.find(+ (line) => (line.taxPercent ?? 0) > 0+ )?.taxPercent;+ return taxPercent ? (+ <Text style={tw("text-[7px] text-gray-400")}>+ {(taxPercent * 100).toFixed(0)}%+ </Text>+ ) : null;+ })()}+ </View></View>)}