Compare commits

...

2 Commits

Author SHA1 Message Date
94008e8072 Notizen in Bankauflistung kennzeichnen
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 57s
Build and Push Docker Images / build-frontend (push) Successful in 1m56s
Build and Push Docker Images / build-website (push) Successful in 35s
Build and Push Docker Images / build-central-services-api (push) Successful in 33s
Build and Push Docker Images / build-central-services-admin (push) Successful in 33s
Build and Push Docker Images / build-docs (push) Successful in 33s
2026-08-09 16:25:21 +02:00
53463675ff Add requested SKR03 accounts 2026-08-09 14:31:12 +02:00
3 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,40 @@
WITH requested_accounts ("number", "label") AS (
VALUES
('1576', 'Abziehbare Vorsteuer 19 %'),
('4110', 'Löhne'),
('4115', 'Löhne (Konto 4115)'),
('4120', 'Gehälter'),
('4130', 'Gesetzliche soziale Aufwendungen'),
('4140', 'Freiwillige soziale Aufwendungen (lohnsteuerfrei)')
)
UPDATE "accounts" AS account
SET "label" = requested."label",
"description" = NULL
FROM requested_accounts AS requested
WHERE account."accountChart" = 'skr03'
AND account."number" = requested."number";
--> statement-breakpoint
WITH requested_accounts ("number", "label") AS (
VALUES
('1576', 'Abziehbare Vorsteuer 19 %'),
('4110', 'Löhne'),
('4115', 'Löhne (Konto 4115)'),
('4120', 'Gehälter'),
('4130', 'Gesetzliche soziale Aufwendungen'),
('4140', 'Freiwillige soziale Aufwendungen (lohnsteuerfrei)')
)
INSERT INTO "accounts" ("number", "label", "description", "accountChart")
SELECT requested."number", requested."label", NULL, 'skr03'
FROM requested_accounts AS requested
WHERE NOT EXISTS (
SELECT 1
FROM "accounts" AS account
WHERE account."accountChart" = 'skr03'
AND account."number" = requested."number"
);
--> statement-breakpoint
SELECT setval(
pg_get_serial_sequence('accounts', 'id'),
GREATEST(COALESCE((SELECT MAX("id") FROM "accounts"), 1), 1),
true
);

View File

@@ -407,6 +407,13 @@
"when": 1786086000000,
"tag": "0060_document_import_sources",
"breakpoints": true
},
{
"idx": 58,
"version": "7",
"when": 1786280400000,
"tag": "0061_additional_skr03_accounts",
"breakpoints": true
}
]
}

View File

@@ -771,8 +771,16 @@ onMounted(() => {
<td class="p-4 truncate max-w-[180px] font-medium">
{{ row.amount < 0 ? row.credName : row.debName }}
</td>
<td class="p-4 text-gray-500 truncate max-w-[350px] text-xs">
{{ row.text }}
<td class="p-4 text-gray-500 max-w-[350px] text-xs">
<div class="flex items-center gap-2 min-w-0">
<UTooltip v-if="String(row.notes || '').trim()" text="Notiz hinterlegt">
<UIcon
name="i-heroicons-chat-bubble-left-ellipsis"
class="w-4 h-4 shrink-0 text-primary-500"
/>
</UTooltip>
<span class="truncate">{{ row.text }}</span>
</div>
</td>
</tr>
</template>