From e3761bc48bc68c05b72872e481aaea4ace20cce5 Mon Sep 17 00:00:00 2001 From: seb Date: Tue, 20 Oct 2026 23:19:43 +0200 Subject: [PATCH] u --- src/store/articlehistory/record.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/articlehistory/record.js b/src/store/articlehistory/record.js index 604b5a5..a7c1fc5 100644 --- a/src/store/articlehistory/record.js +++ b/src/store/articlehistory/record.js @@ -249,7 +249,11 @@ export async function recordStockAdjustmentHistory(runner, { articleId, companyu /** Records price changes in article history. */ export async function recordPriceChangeHistory(runner, { articleId, companyuserId, date, oldPrices, newPrices }) { - const fmtPrice = (p) => `${p.net ?? p.price}@${p.taxRate ?? p.tax ?? 0}%`; + const fmtPrice = (p) => { + const net = p.net ?? p.price; + const tax = p.taxRate ?? p.tax ?? 0; + return `${formatCurrencyDe(calculateGross(net, 0, tax))}@${tax}%`; + }; const oldStr = (oldPrices || []).map(fmtPrice).join(', '); const newStr = (newPrices || []).map(fmtPrice).join(', '); if (oldStr === newStr) return;