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: total should include tax in quote pdf

Brad Barbinf458aa49f76d
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index a46c7045b1..3bb61bf2b6 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -81,7 +81,7 @@ export const path = {
},
external: {
mesJobOperation: (id: string) =>
- generatePath(`https://mes.carbonos.dev/x/operation//${id}`),
+ `https://mes.carbonos.dev/x/operation/${id}`,
},
file: {
cadModel: (id: string) => generatePath(`${file}/model/${id}`),
diff --git a/packages/documents/src/pdf/QuotePDF.tsx b/packages/documents/src/pdf/QuotePDF.tsx
index bf1156fa4e..29473ecbed 100644
--- a/packages/documents/src/pdf/QuotePDF.tsx
+++ b/packages/documents/src/pdf/QuotePDF.tsx
@@ -116,7 +116,9 @@ const QuotePDF = ({
});
const additionalChargePlusShipping =
additionalChargesByQuantity[0] + (price?.convertedShippingCost ?? 0);
- const totalPrice = netExtendedPrice + additionalChargePlusShipping;
+ const totalPrice =
+ (netExtendedPrice + additionalChargePlusShipping) *
+ (1 + line.taxPercent);
return total + totalPrice;
}, (shipment?.shippingCost ?? 0) * (exchangeRate ?? 1));