Index: APPS/Halux/Planning/Resource/impl/ConvertAll.cls.xml
===================================================================
diff -u -r58984 -r65692
--- APPS/Halux/Planning/Resource/impl/ConvertAll.cls.xml (.../ConvertAll.cls.xml) (revision 58984)
+++ APPS/Halux/Planning/Resource/impl/ConvertAll.cls.xml (.../ConvertAll.cls.xml) (revision 65692)
@@ -36,6 +36,7 @@
%Status
@@ -62,6 +63,7 @@
}
;Quit:..Cnt>10000
}
+ Do ..DeleteWezen()
Lock -ProductieResource
]]>
@@ -72,6 +74,7 @@
#Dim PRNr, AxProductID as %String
Set TOENr=..ProductieOrderLijn.ToeleveringNr
Set TLUNr=..ProductieOrderLijn.UniekLijnNr\100*100
+ Set ^||ExistToelev(TOENr,TLUNr)=""
Set PRNr=..ProductieOrderLijn.ProductGetObjectId()
Set ResPRNr=""
&SQL(select top 1 Product into :ResPRNr from APPS_Halux_Planning_Resource_dto.ResourceLijn where ToeleveringNr=:TOENr and UniekLijnNr=:TLUNr)
@@ -89,20 +92,37 @@
select ID into :ResourceID from APPS_Halux_Planning_Resource_dto.ResourceLijn where ToeleveringNr=:TOENr and UniekLijnNr=:TLUNr)
&sql(OPEN DELRES)
- For &sql(FETCH DELRES) Quit:SQLCODE Do
+ For &sql(FETCH DELRES) Quit:SQLCODE Do
. Do ##class(APPS.Halux.Planning.Resource.dto.ResourceLijn).%DeleteId(ResourceID)
&sql(CLOSE DELRES)
]]>
+
+
+
+