feat(expenses): utlägg as an answer to "Vem betalade?" in Underlag, not a page (#2317)
An out-of-pocket purchase differs from any other receipt only in the credit account, so the Underlag pane now asks one question for an unmatched underlag (Företaget / Jag, privat / En anställd / Ingen ännu) and books a privately paid receipt in place through POST /api/expense-claims, replacing the "Andra sätt att bokföra" dropdown and the deep link into the two-step wizard. The verifikat editor stays reachable below as the escape hatch (BFL 5 kap 6-7 §). The person owed surfaces in Att göra under a new Betala band, one row per person (lib/worklist expense_payout, counted in the total and exposed to agents through the attention resource). The Utlägg nav row is gated on existing claims, the same hybrid gate as Körjournal, since the entry point for a new utlägg is now the Underlag pane. Claude-Session: https://claude.ai/code/session_01P8YsvPqjfGxGZUkGeBVUWQ Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Jakob Wennberg
Claude Fable 5.1
parent
bff44e5757
commit
cbe5580886
@@ -3302,6 +3302,37 @@
|
||||
"mixed_currency_note": "Documents in different currencies cannot be summed into a single amount. Each document is still booked separately, against its matched bank transaction and the amount the bank actually settled in SEK."
|
||||
},
|
||||
"inbox_workspace": {
|
||||
"payer_question": "Who paid?",
|
||||
"payer_company": "The company",
|
||||
"payer_help_company": "Card or bank account. Matched against the transaction when it appears.",
|
||||
"payer_owner": "Me, privately",
|
||||
"payer_help_owner": "The company owes you the amount. Paid out from the company account later.",
|
||||
"payer_employee": "An employee",
|
||||
"payer_help_employee": "The company owes the person the amount (2820). Paid out later.",
|
||||
"payer_unpaid": "No one yet",
|
||||
"payer_help_unpaid": "Unpaid invoice. Booked as a supplier liability with a due date.",
|
||||
"payer_help_unpaid_cash": "Unpaid invoice. Registered as a supplier invoice and booked when the payment shows on the account.",
|
||||
"payer_book_expense": "Book the expense",
|
||||
"payer_open_editor": "Open in the voucher editor",
|
||||
"expense_dialog_title": "Book the expense",
|
||||
"expense_dialog_help_owner": "Cost and VAT are booked now. The company owes you the amount on account {account} until it is paid out.",
|
||||
"expense_dialog_help_employee": "Cost and VAT are booked now. The company owes the employee the amount on account 2820 until it is paid out.",
|
||||
"expense_owner_name": "Your name",
|
||||
"expense_employee": "Employee",
|
||||
"expense_pick_employee": "Choose a person",
|
||||
"expense_no_employees": "No employees registered",
|
||||
"expense_description": "Description",
|
||||
"expense_date": "Date",
|
||||
"expense_amount": "Amount ({currency})",
|
||||
"expense_vat": "VAT",
|
||||
"expense_account": "Expense account",
|
||||
"expense_outcome_att_gora": "Lands in To do: Pay out expenses to {name}.",
|
||||
"expense_fx_note": "Booked in SEK at the Riksbank rate for the date.",
|
||||
"expense_cancel": "Cancel",
|
||||
"expense_confirm": "Book",
|
||||
"expense_booked_title": "Expense booked",
|
||||
"expense_booked_description": "The debt to {name} is now in To do.",
|
||||
"expense_failed_title": "Could not book the expense",
|
||||
"hunt_stop": "Stop",
|
||||
"hunt_reading": "Reading {mailboxes}",
|
||||
"hunt_progress": "pass {pass} · {found} fetched",
|
||||
@@ -6640,6 +6671,10 @@
|
||||
"dismiss": "Hide"
|
||||
},
|
||||
"dashboard": {
|
||||
"band_betala": "Pay",
|
||||
"row_expense_payout": "Pay out expenses to {name}",
|
||||
"row_expense_payout_detail_one": "1 receipt · {date}",
|
||||
"row_expense_payout_detail_other": "{count} receipts · oldest {date}",
|
||||
"skv_promo_title": "Connect Skatteverket",
|
||||
"skv_promo_description": "See your tax account and file VAT and employer declarations directly from here. Connect with BankID in a couple of minutes.",
|
||||
"skv_promo_cta": "Connect",
|
||||
|
||||
@@ -3302,6 +3302,37 @@
|
||||
"mixed_currency_note": "Underlag i olika valutor kan inte summeras till ett belopp. Varje underlag bokförs ändå var för sig, mot sin matchade banktransaktion och det belopp banken faktiskt drog i SEK."
|
||||
},
|
||||
"inbox_workspace": {
|
||||
"payer_question": "Vem betalade?",
|
||||
"payer_company": "Företaget",
|
||||
"payer_help_company": "Kort eller bankkonto. Matchas mot transaktionen när den syns.",
|
||||
"payer_owner": "Jag, privat",
|
||||
"payer_help_owner": "Bolaget blir skyldigt dig beloppet. Betalas ut från företagskontot senare.",
|
||||
"payer_employee": "En anställd",
|
||||
"payer_help_employee": "Bolaget blir skyldigt personen beloppet (2820). Betalas ut senare.",
|
||||
"payer_unpaid": "Ingen ännu",
|
||||
"payer_help_unpaid": "Obetald faktura. Bokförs som leverantörsskuld med förfallodatum.",
|
||||
"payer_help_unpaid_cash": "Obetald faktura. Registreras som leverantörsfaktura och bokförs när betalningen syns på kontot.",
|
||||
"payer_book_expense": "Bokför utlägget",
|
||||
"payer_open_editor": "Öppna i verifikatredigeraren",
|
||||
"expense_dialog_title": "Bokför utlägget",
|
||||
"expense_dialog_help_owner": "Kostnad och moms bokförs nu. Bolaget blir skyldigt dig beloppet på konto {account} tills det betalas ut.",
|
||||
"expense_dialog_help_employee": "Kostnad och moms bokförs nu. Bolaget blir skyldigt den anställda beloppet på konto 2820 tills det betalas ut.",
|
||||
"expense_owner_name": "Ditt namn",
|
||||
"expense_employee": "Anställd",
|
||||
"expense_pick_employee": "Välj person",
|
||||
"expense_no_employees": "Inga anställda registrerade",
|
||||
"expense_description": "Beskrivning",
|
||||
"expense_date": "Datum",
|
||||
"expense_amount": "Belopp ({currency})",
|
||||
"expense_vat": "Moms",
|
||||
"expense_account": "Kostnadskonto",
|
||||
"expense_outcome_att_gora": "Hamnar i Att göra: Betala ut utlägg till {name}.",
|
||||
"expense_fx_note": "Bokförs i SEK med Riksbankens kurs för datumet.",
|
||||
"expense_cancel": "Avbryt",
|
||||
"expense_confirm": "Bokför",
|
||||
"expense_booked_title": "Utlägget är bokfört",
|
||||
"expense_booked_description": "Skulden till {name} finns nu i Att göra.",
|
||||
"expense_failed_title": "Kunde inte bokföra utlägget",
|
||||
"hunt_stop": "Avbryt",
|
||||
"hunt_reading": "Läser {mailboxes}",
|
||||
"hunt_progress": "omgång {pass} · {found} hämtade",
|
||||
@@ -6640,6 +6671,10 @@
|
||||
"dismiss": "Dölj"
|
||||
},
|
||||
"dashboard": {
|
||||
"band_betala": "Betala",
|
||||
"row_expense_payout": "Betala ut utlägg till {name}",
|
||||
"row_expense_payout_detail_one": "1 kvitto · {date}",
|
||||
"row_expense_payout_detail_other": "{count} kvitton · äldsta {date}",
|
||||
"skv_promo_title": "Koppla Skatteverket",
|
||||
"skv_promo_description": "Se skattekontot och lämna moms- och arbetsgivardeklarationer direkt härifrån. Anslut med BankID på ett par minuter.",
|
||||
"skv_promo_cta": "Anslut",
|
||||
|
||||
Reference in New Issue
Block a user