weenhanceit / autism-funding

A Web App to Help Manage BC Autism Funding
MIT License
0 stars 0 forks source link

No invoice allocations appear when you first go to a new invoice. #53

Closed lcreid closed 7 years ago

lcreid commented 7 years ago

When you have an Invoice that already has values, but no InvoiceAllocations (like say you had to do some database maintenance and wipe out the InvoiceAllocations), then when you edit that Invoice, the allocation doesn't run before.

Probably by design this is correct, as a new can't match, and an existing would assume that all matching had been done correctly. But did we specify and/or assume that an InvoicesController#edit would always redo the allocation?

lcreid commented 7 years ago

Put this on hold for now as it should not happen in normal operations.

lcreid commented 7 years ago

Documented the maintenance procedures in app/models/invoice_allocation.rb.