Skip to content

Delete Customers and Sites Functionality #59

Description

@everbee7

We need to replicate existing Job and WO functionality in order to help with deleting customers and sites.

Follow the existing Job and WO functionality to:

  • Mark the local database records as deleted
  • Mark the sfsp add_db_object_update_status() tracking record as deleted
  • Attempt to delete in SF

I don't think SF will let us if there are related records but we can try and if not then return an error message that the user has to "move the records associated with this Customer/Site within Salesforce before deletion" - still make sure the other db records are marked as deleted in this case

  • Additionally add same delete attempt in Salesforce for Jobs and WOs with the same response handling
  • We cannot delete in Spectrum, so there should be the same warning/info as shown for Jobs and WOs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions