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) {