feat(sales-orders): kundorder with partial delivery and partial invoicing (#2166)
* feat(sales-orders): kundorder with partial delivery and partial invoicing Adds sales orders (kundorder) as their own non-ledger document between agreement and invoice, for companies that deliver or invoice in parts. Schema (20260902130000): sales_orders + sales_order_items with RLS via user_company_ids(), OR-<n> numbering RPC (membership-gated, no anon execute), company_settings.sales_orders_enabled UI gate, and back-links invoices.sales_order_id / invoice_items.sales_order_item_id. The invoiced quantity per order line is DERIVED from the linked invoice lines on non-cancelled, non-credited invoices and enforced by a BEFORE trigger, so no counter can drift and a credited invoice frees its quantity. Header status is draft / confirmed / completed / cancelled; completion is kept by DB triggers from the same derived quantity. Delivery and invoicing progress are derived per line, never stored as status. Service + API: lib/sales-orders (create/update with id-preserving line replace, transitions with compare-and-set, cumulative delivery registration, invoice-from-order through buildInvoiceWriteData so booking stays in the engine, proforma -> order conversion), routes under /api/sales-orders and /api/invoices/[id]/convert-to-order, structured SALES_ORDER_* error codes, archive classification of the new tables. The invoice editor round-trips sales_order_item_id so a draft edit cannot drop the link; GET /api/invoices gains ?sales_order_id=. UI: /sales-orders list, create/edit form reusing the invoice line conventions, detail with deliver and create-invoice dialogs and linked invoices; nav row behind the settings toggle; the webshop row is relabelled webshop_orders; "Skapa order" on proformas. MCP (20260902141000/141001): list/get reads plus four staged writes (create, transition, register delivery, create invoice from order) whose executors call the lib services; op types added to the pending operations CHECK. Tests: route tests for every route (401/400/404/happy), service unit tests, executor and tool tests, and tests/pg/sales-orders.pg.test.ts (16 cases, green on staging) covering RLS, numbering guards, the over-invoice trigger incl. release on cancel/credit and cross-company refusal, the quantity floor, and completion maintenance. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RQW7mXvbAPgjUHq7dSEamr * fix(sales-orders): harden kundorder after skeptic and security review Resolves every finding from the PR #2166 review pass in one batch. Order link integrity: replaceInvoiceItems now refuses a line set that drops an existing sales_order_item_id (INVOICE_UPDATE_DROPS_ORDER_LINK), closing the MCP update_invoice header-only edit and the v1 PATCH path that severed the link and freed the quantity for double invoicing. The update_invoice re-fetch, gnubok_get_invoice and the v1 item projection now carry sales_order_item_id so well-behaved clients round-trip it. Quantity math: derived remaining/invoiced quantities are rounded to six decimals and compared with an epsilon (roundQty, qtyGreater) so a float remainder such as 0.5999999999999996 can neither refuse the final partial invoice nor land as an invoice quantity; duplicate explicit picks are summed before validation. Leveransdatum: per-line last_delivery_date (migration 20260902160000); an invoice takes the latest date over the lines it covers and only when the covered quantity was delivered, never the header date and never for an advance invoice (ML 17 kap 24 p.7, FX anchor per ML 8 kap 21-23). VAT drift: the order stores the customer type and VAT-validation flag its lines were priced under; invoicing refuses with SALES_ORDER_CUSTOMER_VAT_CHANGED when they differ, and re-saving the order re-validates the lines. Customer and currency are frozen once invoices exist. Tenant and role gates: composite FK (sales_order_id, company_id) ties a line to its parent's company (Superagent P2); aa_enforce_company_writer_role on both tables so a viewer cannot write through the browser client. Proforma -> order refuses proformas with ROT/RUT, periodisering or negative-quantity lines instead of dropping those fields. RESTRICT FK errors on delete map to SALES_ORDER_LINE_LOCKED / SALES_ORDER_HAS_INVOICES. Also: schema-guard literal payloads in lib/sales-orders (ceiling +2 with reason), regenerated skills/accounted-api (sales_order_item_id on invoice items), pg tests for the composite FK, the viewer gate and the new columns, unit tests for every changed path. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XzFmmH82hCJNmZbPqycDiW * fix(sales-orders): resolve CodeRabbit round on PR #2166 Quick wins from the review, all in one pass: - replaceInvoiceItems fails closed when the invoice_items snapshot cannot be read (it is both the restore source and the input to the kundorder link guard); the guard branch is explicit in both PATCH routes. - Cumulative delivery registration carries an optimistic predicate on the quantity it read, so two concurrent registrations cannot regress each other; DELETE of an order keeps its allowed status in the predicate and answers a conflict when zero rows match. - Business dates (order date, delivery date, invoice date) default to the Europe/Stockholm calendar day (todayIsoStockholm), never UTC: the delivery date is also the Riksbanken rate anchor. - The invoice-from-order executor treats an event emit failure as non-blocking: the draft already exists. - sales_order_items are archived through their parent with the order currency denormalised, like invoice_items. - Proforma "Skapa order" tolerates a 2xx without a parsable body; the settings toggle refreshes the server-rendered nav. - List route doc states that q matches the order number (customer names are matched client-side). Declined (out of scope for this PR): moving header + line writes and the delivery loop into transactional RPCs (same PostgREST pattern as the invoice PATCH path, tracked as a follow-up), the MCP approval handler's error message shape (pre-existing code outside this change), and the docstring-coverage warning (no repo convention). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XzFmmH82hCJNmZbPqycDiW * fix(sales-orders): move hardening migration off a colliding version; archive contract; ceiling - 20260902160000_sales_orders_hardening.sql collided with main's 20260902160000_parties_substrate.sql after the third sync; renamed to 20260902180000 and made idempotent (DROP ... IF EXISTS before each ADD CONSTRAINT) so a preview branch that applied it under the old version replays it cleanly. Staging's schema_migrations row renamed. - sales_order_items goes back to a direct archive dump: the coverage contract (tests/pg/full-archive-coverage.pg.test.ts) requires it for a table with its own company_id; the currency lives on the parent order one file over, joined by sales_order_id. - Scanner ceiling re-baselined after merging main (parties phase 1): 397. - v1 PATCH test queues a real empty invoice_items snapshot now that replaceInvoiceItems fails closed on an unreadable one. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XzFmmH82hCJNmZbPqycDiW * fix(sales-orders): drop the composite FK before its unique index on replay The idempotent guard in 20260902180000_sales_orders_hardening.sql dropped the unique (id, company_id) before the FK that depends on its index, so the preview branch replay (which had applied the file under its former version) failed with SQLSTATE 2BP01. Order swapped; replay verified on staging. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XzFmmH82hCJNmZbPqycDiW --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
c40e63e3f7
commit
c0818bb2d2
+188
-1
@@ -44,7 +44,8 @@
|
||||
"kpi": "KPIs",
|
||||
"invoice_inbox": "Documents",
|
||||
"invoices": "Customer invoices",
|
||||
"sales_orders": "Orders",
|
||||
"sales_orders": "Sales orders",
|
||||
"webshop_orders": "Webshop orders",
|
||||
"customers": "Customers",
|
||||
"articles": "Articles",
|
||||
"products": "Products",
|
||||
@@ -3847,6 +3848,12 @@
|
||||
"def_address": "Address",
|
||||
"def_credit_note": "Credit note",
|
||||
"def_credits": "Credits",
|
||||
"def_sales_order": "Sales order",
|
||||
"open_sales_order": "Open the sales order",
|
||||
"create_order": "Create order",
|
||||
"create_order_failed_title": "Could not create the order",
|
||||
"order_created_toast_title": "Sales order created",
|
||||
"order_created_toast_description": "Sales order {number} was created from the proforma",
|
||||
"def_converted_from": "Converted from",
|
||||
"payment_section": "Payment",
|
||||
"payment_confirmation_label": "Payment confirmation",
|
||||
@@ -7902,6 +7909,186 @@
|
||||
"settings_save_failed_title": "Could not save the setting",
|
||||
"settings_open_page": "Open the driving log"
|
||||
},
|
||||
"sales_orders": {
|
||||
"title": "Sales orders",
|
||||
"new_order": "New sales order",
|
||||
"search_placeholder": "Search order number or customer",
|
||||
"status_picker_aria": "Filter by status",
|
||||
"status_all": "All",
|
||||
"status_draft": "Draft",
|
||||
"status_confirmed": "Confirmed",
|
||||
"status_completed": "Completed",
|
||||
"status_cancelled": "Cancelled",
|
||||
"col_number": "No.",
|
||||
"col_customer": "Customer",
|
||||
"col_date": "Order date",
|
||||
"col_status": "Status",
|
||||
"col_delivery": "Delivery",
|
||||
"col_invoicing": "Invoicing",
|
||||
"col_total": "Amount",
|
||||
"delivery_none": "Not delivered",
|
||||
"delivery_partial": "Partly delivered",
|
||||
"delivery_full": "Delivered",
|
||||
"invoicing_none": "Not invoiced",
|
||||
"invoicing_partial": "Partly invoiced",
|
||||
"invoicing_full": "Invoiced",
|
||||
"empty_title": "No sales orders yet",
|
||||
"empty_description": "Create a sales order once a commitment is agreed. The order never books; delivery and invoicing are registered step by step.",
|
||||
"empty_action": "Create sales order",
|
||||
"no_search_results_title": "No matches",
|
||||
"no_search_results_description": "No sales order matches \"{term}\".",
|
||||
"no_status_results_description": "No sales orders with that status.",
|
||||
"count_footer": "{count, plural, =1 {1 sales order} other {# sales orders}}",
|
||||
"load_failed_title": "Could not load sales orders",
|
||||
"viewer_disabled_tooltip": "You have read-only access and cannot create sales orders",
|
||||
"settings_heading": "Sales orders",
|
||||
"settings_toggle_label": "Enable sales orders",
|
||||
"settings_toggle_help": "Shows sales orders in the menu. There you register commitments and deliveries and create invoices from the order.",
|
||||
"settings_save_failed_title": "Could not save the setting",
|
||||
"settings_open_page": "Open sales orders"
|
||||
},
|
||||
"sales_order_form": {
|
||||
"title_create": "New sales order",
|
||||
"title_edit": "Edit sales order {number}",
|
||||
"back": "Back to sales orders",
|
||||
"back_to_order": "Back to the order",
|
||||
"section_customer": "Customer",
|
||||
"select_customer_placeholder": "Select customer",
|
||||
"loading_customers": "Loading customers...",
|
||||
"no_customers_yet": "No customers yet. Add a customer first.",
|
||||
"section_details": "Details",
|
||||
"order_date_label": "Order date",
|
||||
"requested_delivery_date_label": "Requested delivery date",
|
||||
"currency_label": "Currency",
|
||||
"your_reference_label": "Your reference",
|
||||
"our_reference_label": "Our reference",
|
||||
"notes_label": "Notes",
|
||||
"section_lines": "Order lines",
|
||||
"th_description": "Description",
|
||||
"th_quantity": "Qty",
|
||||
"th_unit": "Unit",
|
||||
"th_unit_price": "Unit price",
|
||||
"th_discount": "Discount %",
|
||||
"th_vat": "VAT",
|
||||
"th_amount": "Amount",
|
||||
"article_label": "Article",
|
||||
"article_free_text": "Free text",
|
||||
"article_placeholder": "Search article",
|
||||
"article_search_empty": "No article matches",
|
||||
"description_placeholder": "Description",
|
||||
"text_row_placeholder": "Text line",
|
||||
"add_row": "Add line",
|
||||
"add_text_row": "Add text line",
|
||||
"remove_row": "Remove line",
|
||||
"subtotal": "Subtotal",
|
||||
"vat": "VAT",
|
||||
"total": "Total",
|
||||
"submit_create": "Create sales order",
|
||||
"submit_edit": "Save changes",
|
||||
"validation_customer_required": "Select a customer",
|
||||
"validation_lines_required": "Add at least one order line with a description",
|
||||
"create_failed_title": "Could not create the sales order",
|
||||
"update_failed_title": "Could not save the sales order",
|
||||
"created_title": "Sales order {number} created",
|
||||
"updated_title": "Sales order saved",
|
||||
"load_failed_title": "Could not load the sales order",
|
||||
"not_editable": "The sales order cannot be edited in its current status.",
|
||||
"invoiced_hint": "{qty} invoiced"
|
||||
},
|
||||
"sales_order_detail": {
|
||||
"back": "Back to sales orders",
|
||||
"title": "Sales order {number}",
|
||||
"title_unnumbered": "Sales order",
|
||||
"section_details": "Details",
|
||||
"def_customer": "Customer",
|
||||
"def_order_date": "Order date",
|
||||
"def_requested_delivery_date": "Requested delivery",
|
||||
"def_last_delivery_date": "Latest delivery",
|
||||
"def_currency": "Currency",
|
||||
"def_your_reference": "Your reference",
|
||||
"def_our_reference": "Our reference",
|
||||
"def_notes": "Notes",
|
||||
"def_source_invoice": "Created from",
|
||||
"source_proforma": "Proforma invoice",
|
||||
"def_delivery": "Delivery",
|
||||
"def_invoicing": "Invoicing",
|
||||
"section_lines": "Order lines",
|
||||
"th_description": "Description",
|
||||
"th_quantity": "Qty",
|
||||
"th_delivered": "Delivered",
|
||||
"th_invoiced": "Invoiced",
|
||||
"th_remaining": "Remaining",
|
||||
"th_unit_price": "Unit price",
|
||||
"th_discount": "Discount",
|
||||
"th_vat": "VAT",
|
||||
"th_amount": "Amount",
|
||||
"subtotal": "Subtotal",
|
||||
"vat": "VAT",
|
||||
"total": "Total",
|
||||
"action_confirm": "Confirm",
|
||||
"action_register_delivery": "Register delivery",
|
||||
"action_create_invoice": "Create invoice",
|
||||
"action_cancel": "Cancel order",
|
||||
"action_reopen": "Reopen",
|
||||
"action_edit": "Edit",
|
||||
"action_delete": "Delete",
|
||||
"confirm_dialog_title": "Confirm sales order {number}?",
|
||||
"confirm_dialog_description": "The order becomes confirmed and can be delivered and invoiced. Lines can still be edited.",
|
||||
"confirm_dialog_label": "Confirm",
|
||||
"cancel_dialog_title": "Cancel sales order {number}?",
|
||||
"cancel_dialog_description": "The order is marked as cancelled. Nothing is booked. It can be reopened as a draft later.",
|
||||
"cancel_dialog_label": "Cancel order",
|
||||
"reopen_dialog_title": "Reopen sales order {number}?",
|
||||
"reopen_dialog_description": "The order goes back to draft.",
|
||||
"reopen_dialog_label": "Reopen",
|
||||
"delete_confirm_title": "Delete sales order {number}?",
|
||||
"delete_confirm_description": "The order is deleted permanently. This cannot be undone.",
|
||||
"delete_confirm_label": "Delete",
|
||||
"confirmed_toast": "The sales order is confirmed",
|
||||
"cancelled_toast": "The sales order is cancelled",
|
||||
"reopened_toast": "The sales order is reopened",
|
||||
"deleted_toast": "The sales order is deleted",
|
||||
"transition_failed_title": "The action failed",
|
||||
"delete_failed_title": "Could not delete the sales order",
|
||||
"load_failed_title": "Could not load the sales order",
|
||||
"viewer_disabled_tooltip": "You have read-only access and cannot change sales orders",
|
||||
"delivery_dialog_title": "Register delivery",
|
||||
"delivery_dialog_description": "Enter the total delivered quantity per line. The value is cumulative, not a partial delivery.",
|
||||
"delivery_date_label": "Delivery date",
|
||||
"th_ordered": "Ordered",
|
||||
"th_delivered_qty": "Delivered",
|
||||
"deliver_all": "Mark everything as delivered",
|
||||
"delivery_submit": "Register",
|
||||
"delivery_success": "The delivery is registered",
|
||||
"delivery_failed_title": "Could not register the delivery",
|
||||
"invoice_dialog_title": "Create invoice from the order",
|
||||
"invoice_dialog_description": "Enter the quantity to invoice per line. The invoice is created as a draft you review and send as usual.",
|
||||
"mode_remaining": "Everything remaining",
|
||||
"mode_delivered": "Delivered, not invoiced",
|
||||
"th_remaining_qty": "Remaining",
|
||||
"th_invoice_qty": "Invoice",
|
||||
"invoice_date_label": "Invoice date",
|
||||
"due_date_label": "Due date",
|
||||
"invoice_submit": "Create invoice",
|
||||
"invoice_created_title": "Draft invoice created",
|
||||
"invoice_created_description": "Open the invoice to review and send it.",
|
||||
"open_invoice": "Open the invoice",
|
||||
"invoice_failed_title": "Could not create the invoice",
|
||||
"section_invoices": "Invoices",
|
||||
"th_invoice_number": "Invoice",
|
||||
"th_invoice_status": "Status",
|
||||
"th_invoice_total": "Amount",
|
||||
"invoice_draft_label": "Draft",
|
||||
"invoices_load_failed_title": "Could not load the invoices",
|
||||
"invoice_status_draft": "Draft",
|
||||
"invoice_status_sent": "Sent",
|
||||
"invoice_status_paid": "Paid",
|
||||
"invoice_status_partially_paid": "Partially paid",
|
||||
"invoice_status_overdue": "Overdue",
|
||||
"invoice_status_cancelled": "Cancelled",
|
||||
"invoice_status_credited": "Credited",
|
||||
"invoice_nothing_selected": "Enter a quantity on at least one line"
|
||||
},
|
||||
"data_analysis": {
|
||||
"group_label": "Data and privacy",
|
||||
"settings_heading": "Data analysis",
|
||||
|
||||
+188
-1
@@ -44,7 +44,8 @@
|
||||
"kpi": "Nyckeltal",
|
||||
"invoice_inbox": "Underlag",
|
||||
"invoices": "Kundfakturor",
|
||||
"sales_orders": "Order",
|
||||
"sales_orders": "Kundorder",
|
||||
"webshop_orders": "Webshop-order",
|
||||
"customers": "Kunder",
|
||||
"articles": "Artiklar",
|
||||
"products": "Produkter",
|
||||
@@ -3847,6 +3848,12 @@
|
||||
"def_address": "Adress",
|
||||
"def_credit_note": "Kreditfaktura",
|
||||
"def_credits": "Krediterar",
|
||||
"def_sales_order": "Kundorder",
|
||||
"open_sales_order": "Öppna kundordern",
|
||||
"create_order": "Skapa order",
|
||||
"create_order_failed_title": "Kunde inte skapa ordern",
|
||||
"order_created_toast_title": "Kundorder skapad",
|
||||
"order_created_toast_description": "Kundorder {number} har skapats från proforman",
|
||||
"def_converted_from": "Konverterad från",
|
||||
"payment_section": "Betalning",
|
||||
"payment_confirmation_label": "Betalningsbekräftelse",
|
||||
@@ -7902,6 +7909,186 @@
|
||||
"settings_save_failed_title": "Kunde inte spara inställningen",
|
||||
"settings_open_page": "Öppna körjournalen"
|
||||
},
|
||||
"sales_orders": {
|
||||
"title": "Kundorder",
|
||||
"new_order": "Ny kundorder",
|
||||
"search_placeholder": "Sök ordernummer eller kund",
|
||||
"status_picker_aria": "Filtrera på status",
|
||||
"status_all": "Alla",
|
||||
"status_draft": "Utkast",
|
||||
"status_confirmed": "Bekräftad",
|
||||
"status_completed": "Slutförd",
|
||||
"status_cancelled": "Makulerad",
|
||||
"col_number": "Nr",
|
||||
"col_customer": "Kund",
|
||||
"col_date": "Orderdatum",
|
||||
"col_status": "Status",
|
||||
"col_delivery": "Leverans",
|
||||
"col_invoicing": "Fakturering",
|
||||
"col_total": "Belopp",
|
||||
"delivery_none": "Ej levererad",
|
||||
"delivery_partial": "Delvis levererad",
|
||||
"delivery_full": "Levererad",
|
||||
"invoicing_none": "Ej fakturerad",
|
||||
"invoicing_partial": "Delvis fakturerad",
|
||||
"invoicing_full": "Fakturerad",
|
||||
"empty_title": "Inga kundorder ännu",
|
||||
"empty_description": "Skapa en kundorder när ni är överens om ett åtagande. Ordern bokförs inte; leverans och fakturering registreras steg för steg.",
|
||||
"empty_action": "Skapa kundorder",
|
||||
"no_search_results_title": "Inga träffar",
|
||||
"no_search_results_description": "Ingen kundorder matchar \"{term}\".",
|
||||
"no_status_results_description": "Inga kundorder med den statusen.",
|
||||
"count_footer": "{count, plural, =1 {1 kundorder} other {# kundorder}}",
|
||||
"load_failed_title": "Kunde inte ladda kundorder",
|
||||
"viewer_disabled_tooltip": "Du har läsbehörighet och kan inte skapa kundorder",
|
||||
"settings_heading": "Kundorder",
|
||||
"settings_toggle_label": "Aktivera kundorder",
|
||||
"settings_toggle_help": "Visar kundorder i menyn. Där registrerar du åtaganden och leveranser och skapar fakturor från ordern.",
|
||||
"settings_save_failed_title": "Kunde inte spara inställningen",
|
||||
"settings_open_page": "Öppna kundorder"
|
||||
},
|
||||
"sales_order_form": {
|
||||
"title_create": "Ny kundorder",
|
||||
"title_edit": "Redigera kundorder {number}",
|
||||
"back": "Tillbaka till kundorder",
|
||||
"back_to_order": "Tillbaka till ordern",
|
||||
"section_customer": "Kund",
|
||||
"select_customer_placeholder": "Välj kund",
|
||||
"loading_customers": "Laddar kunder...",
|
||||
"no_customers_yet": "Inga kunder ännu. Lägg till en kund först.",
|
||||
"section_details": "Uppgifter",
|
||||
"order_date_label": "Orderdatum",
|
||||
"requested_delivery_date_label": "Önskat leveransdatum",
|
||||
"currency_label": "Valuta",
|
||||
"your_reference_label": "Er referens",
|
||||
"our_reference_label": "Vår referens",
|
||||
"notes_label": "Anteckningar",
|
||||
"section_lines": "Orderrader",
|
||||
"th_description": "Beskrivning",
|
||||
"th_quantity": "Antal",
|
||||
"th_unit": "Enhet",
|
||||
"th_unit_price": "À-pris",
|
||||
"th_discount": "Rabatt %",
|
||||
"th_vat": "Moms",
|
||||
"th_amount": "Belopp",
|
||||
"article_label": "Artikel",
|
||||
"article_free_text": "Egen rad",
|
||||
"article_placeholder": "Sök artikel",
|
||||
"article_search_empty": "Ingen artikel matchar",
|
||||
"description_placeholder": "Beskrivning",
|
||||
"text_row_placeholder": "Textrad",
|
||||
"add_row": "Lägg till rad",
|
||||
"add_text_row": "Lägg till textrad",
|
||||
"remove_row": "Ta bort rad",
|
||||
"subtotal": "Netto",
|
||||
"vat": "Moms",
|
||||
"total": "Totalt",
|
||||
"submit_create": "Skapa kundorder",
|
||||
"submit_edit": "Spara ändringar",
|
||||
"validation_customer_required": "Välj en kund",
|
||||
"validation_lines_required": "Lägg till minst en orderrad med beskrivning",
|
||||
"create_failed_title": "Kunde inte skapa kundordern",
|
||||
"update_failed_title": "Kunde inte spara kundordern",
|
||||
"created_title": "Kundorder {number} skapad",
|
||||
"updated_title": "Kundordern är sparad",
|
||||
"load_failed_title": "Kunde inte ladda kundordern",
|
||||
"not_editable": "Kundordern kan inte redigeras i sin nuvarande status.",
|
||||
"invoiced_hint": "{qty} fakturerat"
|
||||
},
|
||||
"sales_order_detail": {
|
||||
"back": "Tillbaka till kundorder",
|
||||
"title": "Kundorder {number}",
|
||||
"title_unnumbered": "Kundorder",
|
||||
"section_details": "Uppgifter",
|
||||
"def_customer": "Kund",
|
||||
"def_order_date": "Orderdatum",
|
||||
"def_requested_delivery_date": "Önskad leverans",
|
||||
"def_last_delivery_date": "Senaste leverans",
|
||||
"def_currency": "Valuta",
|
||||
"def_your_reference": "Er referens",
|
||||
"def_our_reference": "Vår referens",
|
||||
"def_notes": "Anteckningar",
|
||||
"def_source_invoice": "Skapad från",
|
||||
"source_proforma": "Proformafaktura",
|
||||
"def_delivery": "Leverans",
|
||||
"def_invoicing": "Fakturering",
|
||||
"section_lines": "Orderrader",
|
||||
"th_description": "Beskrivning",
|
||||
"th_quantity": "Antal",
|
||||
"th_delivered": "Levererat",
|
||||
"th_invoiced": "Fakturerat",
|
||||
"th_remaining": "Återstår",
|
||||
"th_unit_price": "À-pris",
|
||||
"th_discount": "Rabatt",
|
||||
"th_vat": "Moms",
|
||||
"th_amount": "Belopp",
|
||||
"subtotal": "Netto",
|
||||
"vat": "Moms",
|
||||
"total": "Totalt",
|
||||
"action_confirm": "Bekräfta",
|
||||
"action_register_delivery": "Registrera leverans",
|
||||
"action_create_invoice": "Skapa faktura",
|
||||
"action_cancel": "Makulera",
|
||||
"action_reopen": "Återöppna",
|
||||
"action_edit": "Redigera",
|
||||
"action_delete": "Ta bort",
|
||||
"confirm_dialog_title": "Bekräfta kundorder {number}?",
|
||||
"confirm_dialog_description": "Ordern blir bekräftad och kan levereras och faktureras. Raderna kan fortfarande redigeras.",
|
||||
"confirm_dialog_label": "Bekräfta",
|
||||
"cancel_dialog_title": "Makulera kundorder {number}?",
|
||||
"cancel_dialog_description": "Ordern markeras som makulerad. Inget bokförs. Den kan återöppnas som utkast senare.",
|
||||
"cancel_dialog_label": "Makulera",
|
||||
"reopen_dialog_title": "Återöppna kundorder {number}?",
|
||||
"reopen_dialog_description": "Ordern återgår till utkast.",
|
||||
"reopen_dialog_label": "Återöppna",
|
||||
"delete_confirm_title": "Ta bort kundorder {number}?",
|
||||
"delete_confirm_description": "Ordern tas bort permanent. Detta går inte att ångra.",
|
||||
"delete_confirm_label": "Ta bort",
|
||||
"confirmed_toast": "Kundordern är bekräftad",
|
||||
"cancelled_toast": "Kundordern är makulerad",
|
||||
"reopened_toast": "Kundordern är återöppnad",
|
||||
"deleted_toast": "Kundordern är borttagen",
|
||||
"transition_failed_title": "Åtgärden misslyckades",
|
||||
"delete_failed_title": "Kunde inte ta bort kundordern",
|
||||
"load_failed_title": "Kunde inte ladda kundordern",
|
||||
"viewer_disabled_tooltip": "Du har läsbehörighet och kan inte ändra kundorder",
|
||||
"delivery_dialog_title": "Registrera leverans",
|
||||
"delivery_dialog_description": "Ange totalt levererat antal per rad. Värdet är ackumulerat, inte en delleverans.",
|
||||
"delivery_date_label": "Leveransdatum",
|
||||
"th_ordered": "Beställt",
|
||||
"th_delivered_qty": "Levererat",
|
||||
"deliver_all": "Markera allt som levererat",
|
||||
"delivery_submit": "Registrera",
|
||||
"delivery_success": "Leveransen är registrerad",
|
||||
"delivery_failed_title": "Kunde inte registrera leveransen",
|
||||
"invoice_dialog_title": "Skapa faktura från ordern",
|
||||
"invoice_dialog_description": "Ange antal att fakturera per rad. Fakturan skapas som utkast som du granskar och skickar som vanligt.",
|
||||
"mode_remaining": "Allt som återstår",
|
||||
"mode_delivered": "Levererat ej fakturerat",
|
||||
"th_remaining_qty": "Återstår",
|
||||
"th_invoice_qty": "Fakturera",
|
||||
"invoice_date_label": "Fakturadatum",
|
||||
"due_date_label": "Förfallodatum",
|
||||
"invoice_submit": "Skapa faktura",
|
||||
"invoice_created_title": "Fakturautkast skapat",
|
||||
"invoice_created_description": "Öppna fakturan för att granska och skicka den.",
|
||||
"open_invoice": "Öppna fakturan",
|
||||
"invoice_failed_title": "Kunde inte skapa fakturan",
|
||||
"section_invoices": "Fakturor",
|
||||
"th_invoice_number": "Faktura",
|
||||
"th_invoice_status": "Status",
|
||||
"th_invoice_total": "Belopp",
|
||||
"invoice_draft_label": "Utkast",
|
||||
"invoices_load_failed_title": "Kunde inte ladda fakturorna",
|
||||
"invoice_status_draft": "Utkast",
|
||||
"invoice_status_sent": "Skickad",
|
||||
"invoice_status_paid": "Betald",
|
||||
"invoice_status_partially_paid": "Delbetalad",
|
||||
"invoice_status_overdue": "Förfallen",
|
||||
"invoice_status_cancelled": "Makulerad",
|
||||
"invoice_status_credited": "Krediterad",
|
||||
"invoice_nothing_selected": "Ange ett antal på minst en rad"
|
||||
},
|
||||
"data_analysis": {
|
||||
"group_label": "Data och integritet",
|
||||
"settings_heading": "Dataanalys",
|
||||
|
||||
Reference in New Issue
Block a user