diff --git a/ui/src/pages/ProductionProductCostingHasCostDetail.vue b/ui/src/pages/ProductionProductCostingHasCostDetail.vue index 51ea71b..b351106 100644 --- a/ui/src/pages/ProductionProductCostingHasCostDetail.vue +++ b/ui/src/pages/ProductionProductCostingHasCostDetail.vue @@ -470,6 +470,10 @@
Grup Toplami TRY: {{ formatBarMoney(resolveGroupTRYTutar(grp, groupTotalsRevision)) }} | USD: {{ formatBarMoney(resolveGroupUSDTutar(grp, groupTotalsRevision)) }} + + | Tani: {{ resolveGroupIncludedCount(grp) }}/{{ rowsForGroupTotal(grp).length }} kalem + | Ham TRY: {{ formatBarMoney(resolveGroupRawTRYTutar(grp)) }} + 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) { return rowsForGroupTotal(grp).reduce((total, row) => ( total + (shouldIncludeRowInGroupTotal(grp, row) ? resolveRowTRYTutar(row) : 0) @@ -5662,6 +5674,12 @@ watch( flex-wrap: nowrap; white-space: nowrap; } +.pcd-group-debug { + color: #b42318; + font-size: 11px; + font-weight: 800; + text-transform: none; +} .pcd-sub-mt-qty { flex: 0 0 auto; white-space: nowrap;