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

          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