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)
|
||||
}
|
||||
|
||||
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(() => {
|
||||
let temp = bankstatements.value
|
||||
@@ -170,7 +170,7 @@ setupPage()
|
||||
:options="['Nur offene anzeigen','Nur positive anzeigen','Nur negative anzeigen']"
|
||||
:color="selectedFilters.length > 0 ? 'primary' : 'white'"
|
||||
:ui-menu="{ width: 'min-w-max' }"
|
||||
@change="tempStore.modifyFilter('banking',selectedFilters)"
|
||||
@change="tempStore.modifyFilter('banking','main',selectedFilters)"
|
||||
>
|
||||
<template #label>
|
||||
Filter
|
||||
|
||||
@@ -152,6 +152,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
||||
|
||||
itemInfo.value.accounts.forEach(account => {
|
||||
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.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"})
|
||||
@@ -379,7 +380,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
||||
:search-attributes="['label']"
|
||||
searchable-placeholder="Suche..."
|
||||
v-model="item.account"
|
||||
:color="!item.account ? 'rose' : 'primary'"
|
||||
:color="(item.account && accounts.find(i => i.id === item.account)) ? 'primary' : 'rose'"
|
||||
>
|
||||
<template #label>
|
||||
{{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