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.:

      1. 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
      2. Similarly, delete all `orders` by `invoice_id` that no longer exists in the `invoices` table.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Component/s Staff Interface [ 10000 ]
        jonathan 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 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 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 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jun/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 4 minutes
              1h 4m

                Agile