Changed Open Sum Calc in displayOpenBalances.vue

This commit is contained in:
2025-04-14 19:06:19 +02:00
parent 9afe62eae5
commit e21e46b2c8

View File

@@ -47,10 +47,10 @@ const calculateOpenSum = (statement) => {
let startingAmount = 0
statement.statementallocations.forEach(item => {
startingAmount += Math.abs(item.amount)
startingAmount += item.amount
})
return (Math.abs(statement.amount) - startingAmount).toFixed(2)
return (statement.amount - startingAmount).toFixed(2)
}
</script>