feat(billing): include company_name on invoice and payment responses (PMS-186) #149
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-186-billing-company-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add
company_nametoInvoiceResponseandPaymentResponse(PMS-186). The billing surfaces showed the company only as a rawcompany_idUUID because the API returned the FK but no name.How
company_name_map(tenant_id, ids)resolves a batch of company ids to names in one tenant-scoped query.enrich_invoices/enrich_paymentsattachcompany_namein place.list_invoices,get_invoice,list_payments, and thecreate_paymentresponse (payments have no detail page, so its create response is user-visible). Create / update invoice responses are intentionally not enriched: the client navigates to the invoice detail, which is.Test
billing_responses_carry_company_nameasserts the name flows through the invoice list, invoice detail, the create-payment response, and the payment list. All 3 billing tests pass; 115 lib tests,clippy --all-targets -- -D warnings, andcargo fmt --checkclean.Companion
mokosh-apps PR (to follow) shows the name and replaces the "Company ID (UUID)" inputs with a company-name dropdown.
🤖 Generated with Claude Code