Merge branch 'devCorrected' into 'beta'
Dev corrected See merge request fedeo/software!34
This commit is contained in:
@@ -76,7 +76,7 @@ const calculateOpenSum = (statement) => {
|
|||||||
return (statement.amount - startingAmount).toFixed(2)
|
return (statement.amount - startingAmount).toFixed(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectedFilters = ref(tempStore.filters["banking"] ? tempStore.filters["banking"] : ['Nur offene anzeigen'])
|
const selectedFilters = ref(tempStore.filters?.["banking"]?.["main"] ? tempStore.filters["banking"]["main"] : ['Nur offene anzeigen'])
|
||||||
|
|
||||||
const filteredRows = computed(() => {
|
const filteredRows = computed(() => {
|
||||||
let temp = bankstatements.value
|
let temp = bankstatements.value
|
||||||
@@ -170,7 +170,7 @@ setupPage()
|
|||||||
:options="['Nur offene anzeigen','Nur positive anzeigen','Nur negative anzeigen']"
|
:options="['Nur offene anzeigen','Nur positive anzeigen','Nur negative anzeigen']"
|
||||||
:color="selectedFilters.length > 0 ? 'primary' : 'white'"
|
:color="selectedFilters.length > 0 ? 'primary' : 'white'"
|
||||||
:ui-menu="{ width: 'min-w-max' }"
|
:ui-menu="{ width: 'min-w-max' }"
|
||||||
@change="tempStore.modifyFilter('banking',selectedFilters)"
|
@change="tempStore.modifyFilter('banking','main',selectedFilters)"
|
||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
Filter
|
Filter
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
|||||||
|
|
||||||
itemInfo.value.accounts.forEach(account => {
|
itemInfo.value.accounts.forEach(account => {
|
||||||
if(account.account === null) errors.push({message: "Es ist keine Kategorie ausgewählt", type: "breaking"})
|
if(account.account === null) errors.push({message: "Es ist keine Kategorie ausgewählt", type: "breaking"})
|
||||||
|
if(!accounts.value.find(i => i.id === account.account)) errors.push({message: "Es ist keine Kategorie ausgewählt", type: "breaking"})
|
||||||
if(account.amountNet === null) errors.push({message: "Es ist kein Nettobetrag angegeben", type: "breaking"})
|
if(account.amountNet === null) errors.push({message: "Es ist kein Nettobetrag angegeben", type: "breaking"})
|
||||||
if(account.taxType === null) errors.push({message: "Es ist kein Steuertyp ausgewählt", type: "breaking"})
|
if(account.taxType === null) errors.push({message: "Es ist kein Steuertyp ausgewählt", type: "breaking"})
|
||||||
if(account.costCentre === null) errors.push({message: "Es ist keine Kostenstelle ausgewählt", type: "info"})
|
if(account.costCentre === null) errors.push({message: "Es ist keine Kostenstelle ausgewählt", type: "info"})
|
||||||
@@ -379,7 +380,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
|||||||
:search-attributes="['label']"
|
:search-attributes="['label']"
|
||||||
searchable-placeholder="Suche..."
|
searchable-placeholder="Suche..."
|
||||||
v-model="item.account"
|
v-model="item.account"
|
||||||
:color="!item.account ? 'rose' : 'primary'"
|
:color="(item.account && accounts.find(i => i.id === item.account)) ? 'primary' : 'rose'"
|
||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
{{accounts.find(account => account.id === item.account) ? accounts.find(account => account.id === item.account).label : "Keine Kategorie ausgewählt" }}
|
{{accounts.find(account => account.id === item.account) ? accounts.find(account => account.id === item.account).label : "Keine Kategorie ausgewählt" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user