improved balance
This commit is contained in:
parent
cf2fcc0664
commit
3283d8a862
|
@ -116,6 +116,20 @@ export default defineComponent({
|
||||||
sortable: true,
|
sortable: true,
|
||||||
format: (val: Date) => formatDateTime(new Date(val), true, true, true)
|
format: (val: Date) => formatDateTime(new Date(val), true, true, true)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'type',
|
||||||
|
label: 'Type',
|
||||||
|
format: (_: undefined, row: FG.Transaction) => {
|
||||||
|
if (row.sender_id == null) return 'Gutschrift';
|
||||||
|
else {
|
||||||
|
if (row.receiver_id == null) return 'Angeschrieben';
|
||||||
|
else {
|
||||||
|
if (row.receiver_id === store.state.user.currentUser?.userid) return 'Bekommen von X';
|
||||||
|
else return 'Gesendet an X';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'text',
|
name: 'text',
|
||||||
label: 'Text',
|
label: 'Text',
|
||||||
|
|
|
@ -12,7 +12,7 @@ const mainRoutes: FG_Plugin.PluginRouteConfig[] = [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: 'Übersicht',
|
title: 'Übersicht',
|
||||||
icon: 'mdi-cash-plus',
|
icon: 'mdi-cash-check',
|
||||||
path: 'overview',
|
path: 'overview',
|
||||||
name: 'balance-view',
|
name: 'balance-view',
|
||||||
meta: { permissions: [permissions.SHOW] },
|
meta: { permissions: [permissions.SHOW] },
|
||||||
|
|
Loading…
Reference in New Issue