Fix product performance grouped JSON build

This commit is contained in:
M_Kececi
2026-08-18 21:35:10 +03:00
parent f877b611b7
commit f14a96a024
@@ -2884,7 +2884,11 @@ function shouldIncludeRowInGroupTotal (grp, row) {
// CM1/CM2 sub-headers always show their full group value. For every other // CM1/CM2 sub-headers always show their full group value. For every other
// group, the explicit "Maliyete Dahil" selection controls the subtotal. // group, the explicit "Maliyete Dahil" selection controls the subtotal.
if (isCMGroupName(grp?.sAciklama3 || row?.sAciklama3)) return true 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) { function resolveGroupTRYTutar (grp, _revision) {