Module charge_distribution_handlers
koprogo_
api
0.1.0
Module charge_
distribution_
handlers
Module Items
Structs
In koprogo_
api::
infrastructure::
web::
handlers
koprogo_api
::
infrastructure
::
web
::
handlers
Module
charge_
distribution_
handlers
Copy item path
Source
Structs
ยง
calculate_
and_
save_
distribution
POST /invoices/{id}/calculate-distribution - Calculate and save charge distribution Automatically called after invoice approval, or can be triggered manually Only accountant, syndic, or superadmin can calculate distribution
get_
distribution_
by_
expense
GET /invoices/{id}/distribution - Get charge distribution for an invoice
get_
distributions_
by_
owner
GET /owners/{id}/distributions - Get all charge distributions for an owner
get_
total_
due_
by_
owner
GET /owners/{id}/total-due - Get total amount due for an owner