Index: AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml =================================================================== diff -u -r44580 -r44589 --- AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml (.../InventoryOutConverter.cls.xml) (revision 44580) +++ AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter.cls.xml (.../InventoryOutConverter.cls.xml) (revision 44589) @@ -48,16 +48,14 @@ While PRNrIterator.HasNext(){ Set SoprPRNr = "" Set PRNr = PRNrIterator.Next() - If ('..SoprProductConverter.IsSOPRInAX(PRNr)){ + If ('..SoprProductConverter.IsSOPRInAX(PRNr)){ // Het is GEEN principale SOPR, want geen SOPR in AX Do AxdEntityHeader.InventSync.Insert(..AxInventSyncCreator.MaakInventSync(PRNr)) - } Else { + } Else { // Het is WEL een principale SOPR, want een SOPR in AX Set SoprIterator = ..SoprProductConverter.GeefSOPRIterator(PRNr) While SoprIterator.HasNext(){ Set SoprPRNr = SoprIterator.Next() - If (SoprPRNr '= PRNr){ - Set BlumKunde = ..BlumKundeConverter.AdminNaarAx(..SoprProductConverter.GeefBlumKunde(SoprPRNr)) - Do AxdEntityHeader.InventSync.Insert(..AxInventSyncCreator.MaakInventSync(SoprPRNr, PRNr, BlumKunde)) - } + Set BlumKunde = ..BlumKundeConverter.AdminNaarAx(..SoprProductConverter.GeefBlumKunde(SoprPRNr)) + Do AxdEntityHeader.InventSync.Insert(..AxInventSyncCreator.MaakInventSync(SoprPRNr, PRNr, BlumKunde)) } } }