fix(skr.classes.account): Remove incorrect SKR04 automatic account 3300; improve VAT posting validation and test isolation; update readme hints and CI settings

This commit is contained in:
2025-10-28 08:50:32 +00:00
parent d21876c14f
commit 119c12901a
7 changed files with 94 additions and 8 deletions

View File

@@ -185,11 +185,12 @@ export class Account extends SmartDataDbDoc<Account, Account> {
*/
public static isAutomaticAccount(accountNumber: string, skrType: TSKRType): boolean {
// SKR03: 1400 (Forderungen), 1600 (Verbindlichkeiten)
// SKR04: 1400 (Forderungen), 1600 (Verbindlichkeiten), 3300 (Alternative Verbindlichkeiten)
// SKR04: 1400 (Forderungen), 1600 (Verbindlichkeiten)
// Note: In SKR04, 3300 is "Fahrzeugkosten" (vehicle costs), NOT an automatic account
if (skrType === 'SKR03') {
return accountNumber === '1400' || accountNumber === '1600';
} else {
return accountNumber === '1400' || accountNumber === '1600' || accountNumber === '3300';
return accountNumber === '1400' || accountNumber === '1600';
}
}