This commit is contained in:
2025-01-20 11:01:28 +01:00
parent e655d9cecd
commit 33818033a4
3 changed files with 6 additions and 5 deletions

View File

@@ -109,10 +109,12 @@ const calculateAllocatedSum = computed(() => {
let startingAmount = 0
itemInfo.value.statementallocations.forEach(item => {
console.log(item)
if(item.cd_id) {
startingAmount = startingAmount + item.amount
} else if(item.ii_id) {
startingAmount = Number(startingAmount) - item.amount
startingAmount = Number(startingAmount) + item.amount
}
})