Index: AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml
===================================================================
diff -u -r47525 -r47642
--- AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml (.../InventoryOutConverter.cls.xml) (revision 47525)
+++ AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml (.../InventoryOutConverter.cls.xml) (revision 47642)
@@ -89,8 +89,10 @@
Set AangereiktPRNr = GenerischItemId
}
If ('..SoprProductConverter.IsSOPRInAX(AangereiktPRNr)){
- If ('..SoprProductConverter.IsSOPRInCache(AangereiktPRNr)){
- Do ..AxdEntityHeader.InventSync.Insert(..AxInventSyncCreator.MaakInventSync(AangereiktPRNr,,,,AxConfigId))
+ If ('..SoprProductConverter.IsSOPRInCache(AangereiktPRNr)){
+ If ('..SoprProductConverter.IsSOPRKindInCache(AangereiktPRNr)){
+ Do ..AxdEntityHeader.InventSync.Insert(..AxInventSyncCreator.MaakInventSync(AangereiktPRNr,,,,AxConfigId))
+ }
} Else {
Set PrincipaalSoprPRNr = ..SoprProductConverter.GeefVervangProductDoorSOPRInAX(AangereiktPRNr)
Do ..SluitInSoprVarianten(PrincipaalSoprPRNr, AxConfigId)
Index: vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml
===================================================================
diff -u -r47526 -r47642
--- vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml (.../Test.cls.xml) (revision 47526)
+++ vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml (.../Test.cls.xml) (revision 47642)
@@ -25,6 +25,9 @@
Do SoprProductConverterStub.IndienMethodCall("IsSOPRInCache","10").DanReturn($$$False)
Do SoprProductConverterStub.IndienMethodCall("IsSOPRInCache","20").DanReturn($$$False)
Do SoprProductConverterStub.IndienMethodCall("IsSOPRInCache","30").DanReturn($$$False)
+ Do SoprProductConverterStub.IndienMethodCall("IsSOPRKindInCache","10").DanReturn($$$False)
+ Do SoprProductConverterStub.IndienMethodCall("IsSOPRKindInCache","20").DanReturn($$$False)
+ Do SoprProductConverterStub.IndienMethodCall("IsSOPRKindInCache","30").DanReturn($$$False)
Set AxInventSyncCreatorMock = ##class(vhTest.Mock.AXimpl.Dynamics.InventoryOut.Converter.AxInventSyncCreator).%New()
Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","10","","","").DanDoeNiks().ExactAantalKeer(1)
@@ -51,6 +54,7 @@
Set SoprProductConverterStub = ##class(vhTest.Mock.AX.Uitgaand.PM.impl.Convertor.Sopr.ProductConvertor).%New()
Do SoprProductConverterStub.IndienMethodCall("IsSOPRInAX","10").DanReturn($$$False)
Do SoprProductConverterStub.IndienMethodCall("IsSOPRInCache","10").DanReturn($$$False)
+ Do SoprProductConverterStub.IndienMethodCall("IsSOPRKindInCache","10").DanReturn($$$False)
Set AxInventSyncCreatorMock = ##class(vhTest.Mock.AXimpl.Dynamics.InventoryOut.Converter.AxInventSyncCreator).%New()
Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","10","","","").DanDoeNiks().ExactAantalKeer(1)
@@ -65,6 +69,33 @@
]]>
+
+
+
+