Module expense_handlers

Module expense_handlers 

Source

Structsยง

ExportWorkQuoteQuery
Export Work Quote to PDF
approve_invoice
PUT /invoices/{id}/approve - Approve invoice (PendingApproval โ†’ Approved) Only syndic or superadmin can approve
cancel_expense
create_expense
create_invoice_draft
POST /invoices/draft - Create a new invoice draft with VAT
export_work_quote_pdf
get_expense
get_invoice
GET /invoices/{id} - Get full invoice details (enriched with all fields)
get_pending_invoices
GET /invoices/pending - Get all pending invoices (for syndic dashboard) Only syndic or superadmin can view pending invoices
list_expenses
list_expenses_by_building
mark_expense_overdue
mark_expense_paid
reactivate_expense
reject_invoice
PUT /invoices/{id}/reject - Reject invoice with reason (PendingApproval โ†’ Rejected) Only syndic or superadmin can reject
submit_invoice_for_approval
PUT /invoices/{id}/submit - Submit invoice for approval (Draft โ†’ PendingApproval)
unpay_expense
update_invoice_draft
PUT /invoices/{id} - Update invoice draft (only if Draft or Rejected)