add delete log fn before deleting sales in orders