invoices: accountant confirms the numbering scheme #52

Stängd
öppnade 2026-09-24 13:03:36 +00:00 av supernaut · 5 kommentarer
Ägare

Problem

Bokföringslagen (1999:1078) requires verifikationer in an unbroken series, so invoices need a gapless, ordered number. The accountant must confirm the scheme.

Done already

The allocator is built (#59): a counter row updated in the invoicing transaction, as the last statement before commit. Tests prove no gap on rollback and no collision under 40 concurrent issuers.

Left

Get the accountant's confirmation of:

  • A single series from 1, allocated at payment.
  • The first subscription period starting at the Mollie payment's paidAt (#65). The withdrawal window then runs from payment. A late repair leaves the customer fewer of the 14 days, and those days count as used in a proportional refund.

Done when

  • The accountant has confirmed the numbering scheme.
  • The paidAt start is confirmed.

Close by hand after that.

## Problem Bokföringslagen (1999:1078) requires verifikationer in an unbroken series, so invoices need a gapless, ordered number. The accountant must confirm the scheme. ## Done already The allocator is built (#59): a counter row updated in the invoicing transaction, as the last statement before commit. Tests prove no gap on rollback and no collision under 40 concurrent issuers. ## Left Get the accountant's confirmation of: - A single series from 1, allocated at payment. - The first subscription period starting at the Mollie payment's `paidAt` (#65). The withdrawal window then runs from payment. A late repair leaves the customer fewer of the 14 days, and those days count as used in a proportional refund. ## Done when - [x] The accountant has confirmed the numbering scheme. - [x] The `paidAt` start is confirmed. Close by hand after that.
supernaut lade till detta till projektet Bitborg Payment 2026-09-24 13:03:59 +00:00
Upphovsperson
Ägare

Accountant sign-off is tracked separately.

Accountant sign-off is tracked separately.
Upphovsperson
Ägare

Allocator merged in #59: a counter row updated in the invoicing transaction, as the last statement before commit. Tests prove no gap on rollback and no collision under 40 concurrent issuers (DB tests, run locally; #61 brings them into CI). Left: the accountant confirms a single series from 1, allocated at payment. Close by hand after that.

Allocator merged in #59: a counter row updated in the invoicing transaction, as the last statement before commit. Tests prove no gap on rollback and no collision under 40 concurrent issuers (DB tests, run locally; #61 brings them into CI). Left: the accountant confirms a single series from 1, allocated at payment. Close by hand after that.
Upphovsperson
Ägare

One more item for the accountant, from PR #65 (reconciliation, #62): the first subscription period now starts at the Mollie payment's paidAt, not at the time the local record is written. So the withdrawal window runs from payment. A late repair leaves the customer fewer of the 14 days, and those days count as used in a proportional refund. Confirm this is right before closing this issue.

One more item for the accountant, from PR #65 (reconciliation, #62): the first subscription period now starts at the Mollie payment's `paidAt`, not at the time the local record is written. So the withdrawal window runs from payment. A late repair leaves the customer fewer of the 14 days, and those days count as used in a proportional refund. Confirm this is right before closing this issue.
supernaut ändrade titeln från invoices: gapless invoice number allocator (Bokföringslagen) till invoices: accountant confirms the numbering scheme 2026-10-12 18:03:54 +00:00
Upphovsperson
Ägare

Invoicing is manual at launch: invoices are made by hand in the bookkeeping software. The per-charge number billing allocates stays as an internal reference for the sales export and is not shown to customers. Moved to Backlog until invoices are generated in code.

Invoicing is manual at launch: invoices are made by hand in the bookkeeping software. The per-charge number billing allocates stays as an internal reference for the sales export and is not shown to customers. Moved to Backlog until invoices are generated in code.
Upphovsperson
Ägare

Answered 2026-10-24.

  • Numbering. Booking card sales from the Mollie settlement report plus our own sales report is fine, with a separate manual invoice series beside it. Each transaction must be traceable and reconcilable. Invoicing is manual at launch, so the billing counter is a sales reference, not an invoice number.
  • paidAt start. Not a bookkeeping problem, as long as refunds are booked and sales and VAT are adjusted by the right amount. Whether the shortened window and the pro-rata amount are right is a consumer-law question. It moves to counsel on #150.

Both boxes resolved for the accounting side. Closing.

Answered 2026-10-24. - **Numbering.** Booking card sales from the Mollie settlement report plus our own sales report is fine, with a separate manual invoice series beside it. Each transaction must be traceable and reconcilable. Invoicing is manual at launch, so the billing counter is a sales reference, not an invoice number. - **`paidAt` start.** Not a bookkeeping problem, as long as refunds are booked and sales and VAT are adjusted by the right amount. Whether the shortened window and the pro-rata amount are right is a consumer-law question. It moves to counsel on #150. Both boxes resolved for the accounting side. Closing.
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#52
Ingen beskrivning angiven.