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?
When you have an
Invoice
that already has values, but noInvoiceAllocation
s (like say you had to do some database maintenance and wipe out theInvoiceAllocation
s), then when you edit thatInvoice
, 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?