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: taxes and fees on quote pdf
Brad Barbin07b12c789da5
diff --git a/packages/documents/src/pdf/QuotePDF.tsx b/packages/documents/src/pdf/QuotePDF.tsxindex 29473ecbed..d7e86da393 100644--- a/packages/documents/src/pdf/QuotePDF.tsx+++ b/packages/documents/src/pdf/QuotePDF.tsx@@ -320,10 +320,13 @@ const QuotePDF = ({(price?.convertedShippingCost ?? 0);const taxPercent = line.taxPercent ?? 0;+ const totalBeforeTax =+ netExtendedPrice + additionalChargePlusShipping;+ const taxAmount = totalBeforeTax * taxPercent;+ const totalTaxAndFees =+ additionalChargePlusShipping + taxAmount;- const totalPrice =- (netExtendedPrice + additionalChargePlusShipping) *- (1 + taxPercent);+ const totalPrice = netExtendedPrice + totalTaxAndFees;return (<View key={quantity} style={tw("flex flex-row")}>@@ -336,8 +339,8 @@ const QuotePDF = ({: "-"}</Text><Text style={tw("w-1/5 text-right")}>- {additionalChargePlusShipping- ? formatter.format(additionalChargePlusShipping)+ {totalTaxAndFees > 0+ ? formatter.format(totalTaxAndFees): "-"}</Text><Text style={tw("w-1/5 text-right")}>