Index: AXimpl/Dynamics/InventoryOut/EventHandler/ReceptieAfmelden.cls.xml =================================================================== diff -u -r52003 -r54898 --- AXimpl/Dynamics/InventoryOut/EventHandler/ReceptieAfmelden.cls.xml (.../ReceptieAfmelden.cls.xml) (revision 52003) +++ AXimpl/Dynamics/InventoryOut/EventHandler/ReceptieAfmelden.cls.xml (.../ReceptieAfmelden.cls.xml) (revision 54898) @@ -25,9 +25,9 @@ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("AX2A_903_ReceptieAfmelden") { Set Generator = ##class(AXimpl.Generator).%New() - If (ProductToelevLijnEvent.%IsA("DOM.AKP.event.ProductToelevLijnGesplitst") || ProductToelevLijnEvent.%IsA("DOM.AKP.event.ProductToelevLijnVerwijderd") ) { + If (ProductToelevLijnEvent.%IsA("DOM.AKP.event.ProductToelevLijnGesplitst") || ProductToelevLijnEvent.%IsA("DOM.AKP.event.ProductToelevLijnVerwijderd") || ProductToelevLijnEvent.%IsA("DOM.AKP.event.Cache05GeproduceerdEvent") ) { - If ProductToelevLijnEvent.Data.GeefLeverancierID() = ##class(DOM.AKP.enu.Leverancier).Halux() { + If ((ProductToelevLijnEvent.Data.GeefLeverancierID() = ##class(DOM.AKP.enu.Leverancier).Halux()) || ProductToelevLijnEvent.%IsA("DOM.AKP.event.Cache05GeproduceerdEvent") ) { Set ReceptieAfmeldenInputDto = ##class(AXimpl.Dynamics.InventoryOut.Converter.dto.ReceptieAfmeldenInput).%New() Set ReceptieAfmeldenInputDto.Aantal = ProductToelevLijnEvent.Data.GeefAantal() Set ReceptieAfmeldenInputDto.AxConfigId = ProductToelevLijnEvent.Data.GeefAxConfigId() @@ -43,16 +43,14 @@ } Do Generator.Generate(Request) + try { Do ZEND^EWPR(ProductToelevLijnEvent.Data.GeefProductID(),1) } catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() Do ##class(vhLib.Logger).%New().Warning("ReceptieAfmelden","Het bestand kon niet gegenereerd worden voor ProductId '"_ProductToelevLijnEvent.Data.GeefProductID()_"'") } } - If ProductToelevLijnEvent.%IsA("DOM.AKP.event.Cache05GeproduceerdEvent") { - Set ^TVE(+$H,$I(^TVE(+$H))) ="Cache05GeproduceerdEvent op Cache01\"_ProductToelevLijnEvent.Data.GeefProductID()_"\"_ProductToelevLijnEvent.Data.GeefAantal() - } } Else { Do ##class(vhLib.Logger).%New().Info("AXimpl.Dynamics.InventoryOut.EventHandler.ReceptieAfmelden", "ReceptieAfmeldenEvent geraised, maar handler 'ReceptieAfmelden' in deze runmode niet actief")