added improvements on set proces and minor other improvements

This commit is contained in:
Stefan
2026-07-13 22:40:08 +02:00
parent 5c0fdc6c1d
commit 5f85b75c22
55 changed files with 1170 additions and 357 deletions
@@ -124,26 +124,26 @@ BEGIN
$action, deleted.*
INTO @ARCHIVE;
INSERT INTO [dbo].[mfr__d_steps]
SELECT [Id]
,[MobileId]
,[Version]
,[Name]
,[IsDone]
,[HasError]
,[TrackingId]
,[Type]
,[SortOrder]
,[Data]
,[DateModifiedOffline]
,[ServiceRequestId]
,[Description]
,[Comment]
,[InternalComment]
,[ServiceObjectId]
,[StepListTemplateId]
,[ParentId]
,[DateDeleted] = @now
FROM @ARCHIVE
WHERE [ActionType] IN ( 'DELETE', 'UPDATE' );
--INSERT INTO [dbo].[mfr__d_steps]
-- SELECT [Id]
-- ,[MobileId]
-- ,[Version]
-- ,[Name]
-- ,[IsDone]
-- ,[HasError]
-- ,[TrackingId]
-- ,[Type]
-- ,[SortOrder]
-- ,[Data]
-- ,[DateModifiedOffline]
-- ,[ServiceRequestId]
-- ,[Description]
-- ,[Comment]
-- ,[InternalComment]
-- ,[ServiceObjectId]
-- ,[StepListTemplateId]
-- ,[ParentId]
-- ,[DateDeleted] = @now
-- FROM @ARCHIVE
-- WHERE [ActionType] IN ( 'DELETE', 'UPDATE' );
END