From 954ceff58502aa81d41e1ad909eb0ba2457d487f Mon Sep 17 00:00:00 2001 From: Antoine Lelong Date: Wed, 6 Nov 2024 17:28:38 +0100 Subject: [PATCH] fix: put publicPrice instead of discount price in order table --- webapp/src/server/api/routers/order.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/server/api/routers/order.ts b/webapp/src/server/api/routers/order.ts index 7b6fe9b4..b6b8b26c 100644 --- a/webapp/src/server/api/routers/order.ts +++ b/webapp/src/server/api/routers/order.ts @@ -138,7 +138,7 @@ export const orderRouter = createTRPCRouter({ articles: articles.map((article) => ({ article_reference: article.reference, article_quantity: article.quantity, - article_montant: input_value || article.price || 0, + article_montant: input_value || article.publicPrice || 0, })), }, });