Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
The Order plugin needs to listen to the Clients.delete event handler. Orders related to the client need to be deleted. However, since the Order plugin does not maintain a direct reference to the client, but a derived one instead, the derivations should be removed, i.e.:
- Delete all `order_services` matching a `service_id` that no longer exists in the `services` table. If the record has already been deleted, as would be the case by the time this event is called, the service would have been deleted already, so we can remove our hanging records
- Similarly, delete all `orders` by `invoice_id` that no longer exists in the `invoices` table.
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Component/s | Staff Interface [ 10000 ] |
Jonathan Reissmueller
made changes -
Assignee | Jonathan Reissmueller [ jonathan ] |
Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
Status | Open [ 1 ] | In Progress [ 3 ] |
Jonathan Reissmueller
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 59 minutes [ 3540 ] | |
Worklog Id | 11140 [ 11140 ] |
Automated transition triggered when Jonathan Reissmueller created pull request #42 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Time Spent | 59 minutes [ 3540 ] | 1 hour, 4 minutes [ 3840 ] |
Worklog Id | 11147 [ 11147 ] |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #42 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |