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;