Index: APPS/EDIExport/AankoopOrderResponse/BLUM/impl/BLOrdRspService.cls.xml =================================================================== diff -u -r37644 -r37657 --- APPS/EDIExport/AankoopOrderResponse/BLUM/impl/BLOrdRspService.cls.xml (.../BLOrdRspService.cls.xml) (revision 37644) +++ APPS/EDIExport/AankoopOrderResponse/BLUM/impl/BLOrdRspService.cls.xml (.../BLOrdRspService.cls.xml) (revision 37657) @@ -46,7 +46,8 @@ ToeleveringNr:%String,ToeleveringLijnNr:%String,lijnnr:%Integer,Record:%String @@ -245,9 +252,8 @@ ]]> - + ToelevNr:%String,ToelevLijnNr:%String,Aantal:%Integer -1 %Boolean 0) ]]> + + +ToelevNr:%String,ProductNummer:%String,Aantal:%Integer +%Boolean +60) + continue:$$$Not($piece(LijnData,"\",2)=ProductNummer) + continue:$$$Not($piece(LijnData,"\",3)=Aantal) + do Items.Insert(LijnData) + } + + if Items.Count()>1 { + set Exception = ##class(TECH.Exceptions.GeneralErrorException).%New("oeps meer dan eentje gevonden voor "_ToelevNr_":"_ProductNummer_":"_Aantal) + do ##class(TECH.ExceptionHandler).Throw(Exception) + } + quit (Items.Count() > 0) +]]> + + + +IdentNummer:%String,KundeNummer:%String +1 +0 +%String + + Index: vhUnitTest/APPS/EDIExport/AankoopOrderResponse/BLUM/impl/Service/Bewaar/Test.cls.xml =================================================================== diff -u -r37139 -r37657 --- vhUnitTest/APPS/EDIExport/AankoopOrderResponse/BLUM/impl/Service/Bewaar/Test.cls.xml (.../Test.cls.xml) (revision 37139) +++ vhUnitTest/APPS/EDIExport/AankoopOrderResponse/BLUM/impl/Service/Bewaar/Test.cls.xml (.../Test.cls.xml) (revision 37657) @@ -62,8 +62,8 @@ Do $$$AssertTrue($DATA(..BLOrdRspService.MultiDim("277788",1,1))) Do $$$AssertEquals($Piece(..BLOrdRspService.MultiDim("277788",1,1),"\",1),"""22277788.01 0900225300005000000016.0122001062 V 0000000.00 """) - Do $$$AssertTrue($DATA(..BLOrdRspService.MultiDim("277788",2,2))) - Do $$$AssertEquals($Piece(..BLOrdRspService.MultiDim("277788",2,2),"\",1),"""22277788.02 0900225300010000000216.0122001082 V 0000236.01 """) + Do $$$AssertTrue($DATA(..BLOrdRspService.MultiDim("277788",2,1))) + Do $$$AssertEquals($Piece(..BLOrdRspService.MultiDim("277788",2,1),"\",1),"""22277788.02 0900225300010000000216.0122001082 V 0000236.01 """) ]]>