Screens / Expenses
Expenses
Expense list with filters, detail, the new expense form, edit and delete of plain expenses, categories and the month's cash-out total. Stock and payroll expenses are locked up front from locked_reason (PAN-55); a 409 on edit or delete stays as the safety net and reloads the detail as locked. Ingredient lines show the line's own unit, and the stock item for a purchase line comes from the paged stock picker (PAN-58). Amend expense (PAN-126): editing is its own page (/expenses/:id/edit) that sends only the changed fields; delete asks for an optional reason (sent with DELETE); Edit history (/expenses/:id/history) lists every amendment and the delete, newest first. Restyled to the refined design (PAN-136). A 422 on an old page cursor (PAN-137, the new same-day order) reloads from page one with no error.
- App routes
/expenses/expenses/new/expenses/:id/edit/expenses/:id/history- Access
- expenses.view
- Screen code
lib/screens/expenses/expenses_page.dartlib/screens/expenses/expenses_controller.dartlib/screens/expenses/expense_form_sheet.dartlib/screens/expenses/expense_detail_view.dartlib/screens/expenses/expense_edit_controller.dartlib/screens/expenses/expense_delete_dialog.dartlib/screens/stock/widgets/stock_item_picker_sheet.dartlib/screens/stock/widgets/stock_item_picker_controller.dartlib/screens/expenses/widgets/expense_edit_page.dartlib/screens/expenses/widgets/expense_history_page.dartlib/screens/expenses/widgets/expense_amend_parts.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (11)
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.