Changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user