Compare commits
2 Commits
6473adca6c
...
94008e8072
| Author | SHA1 | Date | |
|---|---|---|---|
| 94008e8072 | |||
| 53463675ff |
40
backend/db/migrations/0061_additional_skr03_accounts.sql
Normal file
40
backend/db/migrations/0061_additional_skr03_accounts.sql
Normal 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
|
||||
);
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user