Fix product performance grouped JSON build
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user