feat(invoices): allow BAS class 1-3 posting-account overrides and complete the aktiekapital note (#1121)
- invoice/article posting-account overrides accept active class 1-3 accounts; class 1-2 (balance-sheet) accounts are rejected on VAT-bearing lines so the ruta 05 tax base always books to a 3xxx account - shared posting-account regex across server schemas, pending-operation re-validation, and client forms - share-capital settings (aktiekapital/antal_aktier) feed the annual-report note; kvotvarde derived per ABL 1 kap 6 $; all-or-nothing pair constraint - signed per-rate VAT breakdown on credit-note PDFs; U+2212 to ASCII hyphen Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
b0044bfe98
commit
43f7ccab9e
@@ -667,8 +667,13 @@ const INVOICE: Record<string, StructuredErrorEntry> = {
|
||||
},
|
||||
INVOICE_CREATE_REVENUE_ACCOUNT_INVALID: {
|
||||
httpStatus: 400,
|
||||
message_sv: 'Ett angivet försäljningskonto finns inte eller är inte ett aktivt intäktskonto (klass 3).',
|
||||
message_en: 'A supplied revenue account does not exist or is not an active class-3 income account.',
|
||||
message_sv: 'Ett angivet bokföringskonto finns inte eller är inte ett aktivt balans- eller intäktskonto (klass 1-3).',
|
||||
message_en: 'A supplied posting account does not exist or is not an active balance-sheet or revenue account (class 1-3).',
|
||||
},
|
||||
INVOICE_CREATE_POSTING_ACCOUNT_VAT_CONFLICT: {
|
||||
httpStatus: 400,
|
||||
message_sv: 'Ett balanskonto (klass 1-2) kan bara användas på rader utan moms. Använd ett intäktskonto (3xxx) för momspliktiga rader.',
|
||||
message_en: 'A balance-sheet account (class 1-2) can only be used on zero-VAT lines. Use a revenue account (3xxx) for VAT-bearing lines.',
|
||||
},
|
||||
INVOICE_CREATE_ROT_RUT_VALIDATION: {
|
||||
httpStatus: 400,
|
||||
@@ -1839,8 +1844,8 @@ const ARTICLE: Record<string, StructuredErrorEntry> = {
|
||||
},
|
||||
ARTICLE_REVENUE_ACCOUNT_INVALID: {
|
||||
httpStatus: 400,
|
||||
message_sv: 'Försäljningskontot finns inte eller är inte ett aktivt intäktskonto (klass 3).',
|
||||
message_en: 'The revenue account does not exist or is not an active class-3 income account.',
|
||||
message_sv: 'Bokföringskontot finns inte eller är inte ett aktivt balans- eller intäktskonto (klass 1-3).',
|
||||
message_en: 'The posting account does not exist or is not an active balance-sheet or revenue account (class 1-3).',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user