Index: PRODUKT4.mac.rou =================================================================== diff -u -r1656 -r1665 --- PRODUKT4.mac.rou (.../PRODUKT4.mac.rou) (revision 1656) +++ PRODUKT4.mac.rou (.../PRODUKT4.mac.rou) (revision 1665) @@ -79,8 +79,7 @@ new StockService set StockService = ##class(APPS.common.StockNiveauService).GeefServiceViaPRNr(PRNr,Datum) new resGetStock - - if Type="" { + if Type="" { new dto set dto = StockService.GeefAlleStockTypeNiveaus() set resGetStock = $select(WMSIncl:dto.FysischMinReservaties,1:dto.Fysisch)_"\"_ dto.Praktisch_"\"_dto.Theoretisch_"\\"_dto.InReceptie_"\"_dto.InReceptieGestockeerd Index: vhUnitTest/APPS/common/StockNiveauService.cls.xml =================================================================== diff -u -r1074 -r1665 --- vhUnitTest/APPS/common/StockNiveauService.cls.xml (.../StockNiveauService.cls.xml) (revision 1074) +++ vhUnitTest/APPS/common/StockNiveauService.cls.xml (.../StockNiveauService.cls.xml) (revision 1665) @@ -36,10 +36,10 @@ set implSNS = ##class(APPS.common.impl.StockNiveauService).%New(1000) set dtoStock = implSNS.GeefAlleStockTypeNiveaus() do $$$AssertEquals(dtoStock.Fysisch,1000,"Fysische stock") - do $$$AssertEquals(dtoStock.Praktisch,970,"Praktische stock") + do $$$AssertEquals(dtoStock.Praktisch,960,"Praktische stock") do $$$AssertEquals(dtoStock.FysischMinReservaties,990,"Fysische stock min aantal in reservatie") - do $$$AssertEquals(dtoStock.Theoretisch,1720,"Theorethische stock") - do $$$AssertEquals(dtoStock.InOrder,30,"Aantal op order") + do $$$AssertEquals(dtoStock.Theoretisch,1710,"Theorethische stock") + do $$$AssertEquals(dtoStock.InOrder,40,"Aantal op order") do $$$AssertEquals(dtoStock.InToelevering,750,"Aantal in uitlevering") do $$$AssertEquals(dtoStock.InReservatie,10,"Aantal in reservatie") quit @@ -62,19 +62,19 @@ @@ -83,20 +83,20 @@ @@ -127,16 +127,16 @@ Index: APPS/common/impl/StockNiveauService.cls.xml =================================================================== diff -u -r1656 -r1665 --- APPS/common/impl/StockNiveauService.cls.xml (.../StockNiveauService.cls.xml) (revision 1656) +++ APPS/common/impl/StockNiveauService.cls.xml (.../StockNiveauService.cls.xml) (revision 1665) @@ -81,6 +81,11 @@ 1 + +vhLib.Logger +1 + + PRNr:%Integer,Datum:%Date="",Magazijn:APPS.common.enu.MagazijnMetStock="" 1 @@ -89,11 +94,14 @@ @@ -105,7 +113,7 @@ set dtoStock.Fysisch = ..GeefFysischeStock() set dtoStock.Praktisch = ..GeefPraktischeStock() - ;set dtoStock.FysischMinReservaties = ..GeefFysischeStockMinReservaties() + set dtoStock.FysischMinReservaties = ..GeefFysischeStockMinReservaties() set dtoStock.Theoretisch = ..GeefTheoretischeStock() set dtoStock.InOrder = ..GeefAantalInOrder() set dtoStock.InToelevering = ..GeefAantalInToelevering() @@ -122,14 +130,19 @@ %Float %Float %Float %Float %Float %Float @@ -232,6 +273,8 @@ %Float %Float ..Datum)) - set Aantal = $piece(Rec,"\",1) - set Result = Result + Aantal - } + set Rec = ^KPR(..PRNr,idxWNode) + set Leverdag = $P(Rec,"\",2) + continue:($length(..Datum)&&(Leverdag>..Datum)) + set Aantal = $piece(Rec,"\",1) + set Result = Result + Aantal } set ..AantalInOrder = Result + do ..Logger.Info($$$Actie,..PRNr_" : "_Result) + + quit Result ]]> @@ -293,6 +341,8 @@ %Float @@ -318,6 +370,8 @@ %Float @@ -353,6 +409,9 @@ %Float