Merge branch 'dev' into beta
This commit is contained in:
@@ -75,10 +75,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)
|
||||
}
|
||||
|
||||
const selectedFilters = ref(['Nur offene anzeigen'])
|
||||
|
||||
@@ -523,7 +523,7 @@ const archiveStatement = async () => {
|
||||
>
|
||||
<template #header>
|
||||
<div class="flex flex-row justify-between">
|
||||
<span>{{vendors.find(i => i.id === item.ii_id.vendor).vendorNumber}} - {{vendors.find(i => i.id === item.ii_id.vendor).name}}</span>
|
||||
<span>{{item.ii_id.reference}} - {{vendors.find(i => i.id === item.ii_id.vendor).name}}</span>
|
||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||
</div>
|
||||
</template>
|
||||
@@ -543,7 +543,7 @@ const archiveStatement = async () => {
|
||||
>
|
||||
<template #header>
|
||||
<div class="flex flex-row justify-between">
|
||||
<span v-if="customers.find(i => i.id === item.cd_id.customer)">{{customers.find(i => i.id === item.cd_id.customer).customerNumber}} - {{customers.find(i => i.id === item.cd_id.customer).name}}</span>
|
||||
<span v-if="customers.find(i => i.id === item.cd_id.customer)">{{item.cd_id.customer.documentNumber}} - {{customers.find(i => i.id === item.cd_id.customer).name}}</span>
|
||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user