invoices: issue a credit note for every refund #63
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#63
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Problem
A withdrawal refund writes a refund row but no credit note (kreditfaktura) referencing the original invoice. Mervärdesskattelagen expects one to reduce output VAT.
issueRefundcarries aponytail:comment for this.Done when
The accountant has confirmed the format. Each refund issues a negative invoice from the same gapless counter, in the same transaction, referencing the original invoice number. A test covers it.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-10-12 17:49:08 +00:00
Invoicing is manual at launch, so credit notes are made by hand in the bookkeeping software. Moved to Backlog until invoices are generated in code.
Format confirmed 2026-10-24. Not blocked any more. Credit notes are manual at launch, so this stays in Backlog.
A credit note shows the date, the seller's details, what is credited, the credited amount and VAT, and a clear reference to the original invoice.
A chargeback does not automatically mean a credit note. It depends on whether the purchase is actually reversed, or the customer still owes the money. When it stands, the amount becomes a receivable and sales and VAT are unchanged. So the code must not issue a credit note per chargeback. Only refunds and reversed purchases get one.