Bergs Bokforing / register_invoice_payment
Slug
Name
Router description (one line: when does a message belong here?)
The user wants to mark a customer invoice as paid.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"mark the Utsikten invoice as paid" -> register_invoice_payment "bokfor betalning for faktura F-2043" -> register_invoice_payment "customer paid the Villa Sjovik invoice" -> register_invoice_payment "just show me the invoices" -> invoices_overview
Use case prompt (behaviour instructions for the model)
The user wants to register a customer invoice payment. - If it is unclear which invoice, show card_list so they can pick. - When known, ask in text and offer actions: ONE button whose change sets that invoice's /invoices/N/status to "paid" and sets /cash/bank_balance to the current bank balance plus the invoice amount, plus a Cancel button. - It is registered only when the user taps the button.
Allowed actions / components
say
chips
select
form
card
card_list
actions
unaccounted_list
template_picker
verification_list
Save
Delete use case