Fix product performance grouped JSON build
This commit is contained in:
@@ -2975,7 +2975,7 @@ function resolveGroupTRYTutar (groupIndex, _revision) {
|
||||
const grp = detailGroups.value[groupIndex]
|
||||
return (Array.isArray(grp?.items) ? grp.items : []).reduce((total, row) => {
|
||||
if (!shouldIncludeRowInGroupTotal(grp, row)) return total
|
||||
return total + parseMoneyInput(row?.lTutar)
|
||||
return total + resolveRowTRYTutar(row)
|
||||
}, 0)
|
||||
}
|
||||
|
||||
@@ -2983,7 +2983,7 @@ function resolveGroupUSDTutar (groupIndex, _revision) {
|
||||
const grp = detailGroups.value[groupIndex]
|
||||
return (Array.isArray(grp?.items) ? grp.items : []).reduce((total, row) => {
|
||||
if (!shouldIncludeRowInGroupTotal(grp, row)) return total
|
||||
return total + parseMoneyInput(row?.usdTutar ?? row?.lTutarUSD)
|
||||
return total + resolveRowUSDTutar(row)
|
||||
}, 0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user