From f14a96a024634b96999cc12a5aa6c2015d79041e Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Tue, 18 Aug 2026 21:35:10 +0300 Subject: [PATCH] Fix product performance grouped JSON build --- ui/src/pages/ProductionProductCostingHasCostDetail.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/ProductionProductCostingHasCostDetail.vue b/ui/src/pages/ProductionProductCostingHasCostDetail.vue index 9f4bb17..fa26ecc 100644 --- a/ui/src/pages/ProductionProductCostingHasCostDetail.vue +++ b/ui/src/pages/ProductionProductCostingHasCostDetail.vue @@ -2884,7 +2884,11 @@ 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 - return normalizeBooleanFlag(row?.maliyeteDahil ?? row?.maliyete_dahil ?? row?.Maliyete_dahil) + + const inclusionValue = row?.maliyeteDahil ?? row?.maliyete_dahil ?? row?.Maliyete_dahil + if (inclusionValue === false || inclusionValue === 0) return false + const normalizedValue = String(inclusionValue ?? '').trim().toLowerCase() + return normalizedValue !== '0' && normalizedValue !== 'false' && normalizedValue !== 'hayir' } function resolveGroupTRYTutar (grp, _revision) {