Fix product performance grouped JSON build
This commit is contained in:
@@ -470,6 +470,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sub-right pcd-sub-right-clickable" @click="toggleGroup(grp, gi)">
|
<div class="sub-right pcd-sub-right-clickable" @click="toggleGroup(grp, gi)">
|
||||||
Grup Toplami TRY: {{ formatBarMoney(resolveGroupTRYTutar(grp, groupTotalsRevision)) }} | USD: {{ formatBarMoney(resolveGroupUSDTutar(grp, groupTotalsRevision)) }}
|
Grup Toplami TRY: {{ formatBarMoney(resolveGroupTRYTutar(grp, groupTotalsRevision)) }} | USD: {{ formatBarMoney(resolveGroupUSDTutar(grp, groupTotalsRevision)) }}
|
||||||
|
<span class="pcd-group-debug">
|
||||||
|
| Tani: {{ resolveGroupIncludedCount(grp) }}/{{ rowsForGroupTotal(grp).length }} kalem
|
||||||
|
| Ham TRY: {{ formatBarMoney(resolveGroupRawTRYTutar(grp)) }}
|
||||||
|
</span>
|
||||||
<q-icon
|
<q-icon
|
||||||
:name="isGroupOpen(grp, gi) ? 'expand_less' : 'expand_more'"
|
:name="isGroupOpen(grp, gi) ? 'expand_less' : 'expand_more'"
|
||||||
size="18px"
|
size="18px"
|
||||||
@@ -2896,6 +2900,14 @@ function rowsForGroupTotal (grp) {
|
|||||||
return flatDetailRows.value.filter(row => normalizeGroupName(row?.sAciklama3) === groupName)
|
return flatDetailRows.value.filter(row => normalizeGroupName(row?.sAciklama3) === groupName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function resolveGroupIncludedCount (grp) {
|
||||||
|
return rowsForGroupTotal(grp).filter(row => shouldIncludeRowInGroupTotal(grp, row)).length
|
||||||
|
}
|
||||||
|
|
||||||
|
function resolveGroupRawTRYTutar (grp) {
|
||||||
|
return rowsForGroupTotal(grp).reduce((total, row) => total + parseMoneyInput(row?.lTutar), 0)
|
||||||
|
}
|
||||||
|
|
||||||
function resolveGroupTRYTutar (grp, _revision) {
|
function resolveGroupTRYTutar (grp, _revision) {
|
||||||
return rowsForGroupTotal(grp).reduce((total, row) => (
|
return rowsForGroupTotal(grp).reduce((total, row) => (
|
||||||
total + (shouldIncludeRowInGroupTotal(grp, row) ? resolveRowTRYTutar(row) : 0)
|
total + (shouldIncludeRowInGroupTotal(grp, row) ? resolveRowTRYTutar(row) : 0)
|
||||||
@@ -5662,6 +5674,12 @@ watch(
|
|||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.pcd-group-debug {
|
||||||
|
color: #b42318;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 800;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
.pcd-sub-mt-qty {
|
.pcd-sub-mt-qty {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
Reference in New Issue
Block a user