From f877b611b7d30d71bdd72299b3e5c8a43b195126 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Tue, 18 Aug 2026 21:13:38 +0300 Subject: [PATCH] Fix product performance grouped JSON build --- ui/src/pages/ProductionProductCostingHasCostDetail.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/pages/ProductionProductCostingHasCostDetail.vue b/ui/src/pages/ProductionProductCostingHasCostDetail.vue index 7b94d90..9f4bb17 100644 --- a/ui/src/pages/ProductionProductCostingHasCostDetail.vue +++ b/ui/src/pages/ProductionProductCostingHasCostDetail.vue @@ -2701,7 +2701,7 @@ function normalizeDetailRows (items, groupName = '') { // Use fiyat_girilen which is the unit price in original currency. inputPrice: x?.inputPrice ?? normalizeInputPrice(x?.fiyat_girilen), inputPricePrBr: originalCurrency, - maliyeteDahil: x?.maliyeteDahil ?? normalizeBooleanFlag(x?.maliyete_dahil ?? x?.Maliyete_dahil), + maliyeteDahil: normalizeBooleanFlag(x?.maliyeteDahil ?? x?.maliyete_dahil ?? x?.Maliyete_dahil), cmPriceTypeId: normalizeCMPriceTypeId(x?.cmPriceTypeId ?? x?.cm_price_type_id, groupName || x?.sAciklama3), draftChanged: Boolean(x?.draftChanged), priceUpdateState: String(x?.priceUpdateState || '').trim() @@ -2884,8 +2884,7 @@ function shouldIncludeRowInGroupTotal (grp, row) { // CM1/CM2 sub-headers always show their full group value. For every other // group, the explicit "Maliyete Dahil" selection controls the subtotal. if (isCMGroupName(grp?.sAciklama3 || row?.sAciklama3)) return true - if (typeof row?.maliyeteDahil === 'boolean') return row.maliyeteDahil - return normalizeBooleanFlag(row?.maliyete_dahil ?? row?.Maliyete_dahil) + return normalizeBooleanFlag(row?.maliyeteDahil ?? row?.maliyete_dahil ?? row?.Maliyete_dahil) } function resolveGroupTRYTutar (grp, _revision) {