Index: APPS/MAG/UGLYPicking/impl/UglyPickingService.cls.xml =================================================================== diff -u -r1759 -r1779 --- APPS/MAG/UGLYPicking/impl/UglyPickingService.cls.xml (.../UglyPickingService.cls.xml) (revision 1759) +++ APPS/MAG/UGLYPicking/impl/UglyPickingService.cls.xml (.../UglyPickingService.cls.xml) (revision 1779) @@ -502,6 +502,20 @@ %Status + +BonNr:%Integer,MagazijnID:APPS.MAG.UGLYPicking.enu.Magazijn + + + ProductLijn:APPS.MAG.UGLYPicking.dto.ProductLijn %Status @@ -557,6 +571,46 @@ 0)") + Do ResultSet.Execute(BonNr) + + While (ResultSet.Next()) + { + Set InventoryID = ResultSet.Data("Inventory") + Set AantalGereserveerd = ResultSet.Data("AantalTePicken") + Do MagazijnenArray.SetAt("",ResultSet.Data("Magazijn")) + Set Result = ##class(EWMS.Inventory).RollbackReservation(InventoryID,AantalGereserveerd) + If (Result '= "") + { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.GeneralErrorException).%New("Kon de huidige bon niet stoppen, probleem bij het terugdraaien van de reservaties in de EWMS databank: "_Result)) + } + } + + Do ResultSet.Close() + + Set MagazijnenIterator = ##class(TECH.ListIterator).%New(MagazijnenArray) + While (MagazijnenIterator.HasNext()) + { + Do MagazijnenIterator.Next() + Set Magazijn = MagazijnenIterator.Key() + Set Status=##class(Flow.OrderWMS.PalletReservatie).DeleteReservation(BonNr,Magazijn) + If $$$ISERR(Status) + { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.GeneralErrorException).%New("Kon de huidige bon niet stoppen, probleem bij het terugdraaien van de palletreservaties: "_$$ParseStatus^vhLib(Status))) + } + } + + Do Sessie.ZetGebruiktBonNr("") Set Status = Sessie.%Save() Index: WS/MAG/UGLYPicking/UGLYPickingService.cls.xml =================================================================== diff -u -r1759 -r1779 --- WS/MAG/UGLYPicking/UGLYPickingService.cls.xml (.../UGLYPickingService.cls.xml) (revision 1759) +++ WS/MAG/UGLYPicking/UGLYPickingService.cls.xml (.../UGLYPickingService.cls.xml) (revision 1779) @@ -66,6 +66,13 @@ ]]> + +BonNr:%Integer,MagazijnID:APPS.MAG.UGLYPicking.enu.Magazijn +1 + + + BonNr:%Integer 1 Index: APPS/MAG/UglyPickingService.cls.xml =================================================================== diff -u -r1759 -r1779 --- APPS/MAG/UglyPickingService.cls.xml (.../UglyPickingService.cls.xml) (revision 1759) +++ APPS/MAG/UglyPickingService.cls.xml (.../UglyPickingService.cls.xml) (revision 1779) @@ -79,6 +79,12 @@ + +BonNr:%Integer,MagazijnID:APPS.MAG.UGLYPicking.enu.Magazijn + + + ProductLijn:APPS.MAG.UGLYPicking.dto.ProductLijn %Status