techcollective/mercury — Issue #60: decide what to do with stock when a term or customer with invoices is deleted
Author: 3point2
Created: 2012-01-16 17:20:14+00:00
State: open
Labels: 0.2, enhancement

it might be best to leave the current behavior of allowing the delete to cascade to invoiceentry without calling delete() and hence without updating stock. this could also be a setting in which the appropriate stock adjustments are calculated pre-delete and applied if it is successful. or customer.delete could be forced to call invoice_set.delete and term.delete -> customer.delete.

god i hate this stuff. surely there's a better way.