invoices: issue a credit note for every refund #63

Öppen
öppnade 2026-10-01 15:10:27 +00:00 av supernaut · 2 kommentarer
Ägare

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. issueRefund carries a ponytail: 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.

## 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. `issueRefund` carries a `ponytail:` 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 lade till detta till projektet Bitborg Payment 2026-10-01 15:10:39 +00:00
Upphovsperson
Ägare

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.

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.
Upphovsperson
Ägare

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.

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.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment#63
Ingen beskrivning angiven.