Index: BL/Legacy/FLOW.cls.xml =================================================================== diff -u -r48883 -r67109 --- BL/Legacy/FLOW.cls.xml (.../FLOW.cls.xml) (revision 48883) +++ BL/Legacy/FLOW.cls.xml (.../FLOW.cls.xml) (revision 67109) @@ -80,6 +80,73 @@ Do ..MailApi.VerstuurMail(Mail) ]]> + + +1 +JournaalId:%String +%String + + + + +1 +ResultSet:TECH.ResultSet +1 +%String + 0) { + Set LeverancierID = "L||"_$P(##class(AXimpl.AxToAdminUtils).ConvertSupplierIDHLX(LeverancierID),"||",2) + #dim Toelevering As DOM.AKP.Toelevering = ToeleveringAPI.MaakNieuwToelevering(LeverancierID) + Do ToeleveringLCS.VoegToeProductVoorLeverancier(Toelevering, LeverancierID, ProductID, Aantal) + } + + While (ResultSetIterator.HasNext()) + { + Set rs = ResultSetIterator.Next() + Set Artikelnummer = rs.Data("itemid") + Set Aantal = +rs.Data("qty") + Set ProductID = ProductAPI.GeefProductIdVoorIdentNummer(Artikelnummer) + Do ToeleveringLCS.VoegToeProductVoorLeverancier(Toelevering, LeverancierID, ProductID, Aantal) + } + + If $IsObject($Get(Toelevering)) { + Do Toelevering.Save() + Set ToeleveringID = Toelevering.GeefID() + } + + Quit ToeleveringID +]]> + Index: FLOWTOE.mac.rou =================================================================== diff -u -r53155 -r67109 --- FLOWTOE.mac.rou (.../FLOWTOE.mac.rou) (revision 53155) +++ FLOWTOE.mac.rou (.../FLOWTOE.mac.rou) (revision 67109) @@ -473,6 +473,7 @@ . Set PalletAantal=##class(BL.Prod.sub.pxVoorraadIdentificatieDocs).GeefToeleveringEenheid(PRNr) . Set AantalPaginas=(Aantal\PalletAantal)+(Aantal#PalletAantal>0) . Do ##class(CHUI.Prod.VoorraadIdentificatieDoc).PrintProductVoorraadPagina(PRNr,PalletAantal,AantalPaginas,TLNr) + Do VerwijderToelevering^FLOWTOE3(LEVNr,TLNr) Quit ; INIT Index: FLOW.mac.rou =================================================================== diff -u -r54783 -r67109 --- FLOW.mac.rou (.../FLOW.mac.rou) (revision 54783) +++ FLOW.mac.rou (.../FLOW.mac.rou) (revision 67109) @@ -19,7 +19,7 @@ ; 1 enkel orgalux ; SELECT(Global,IGlobal,Exist,NoSelNr,DERDENr,MultSel,ChkWMS,Orgalux) - New I,R,Document,Prompt,Komm1,Komm2,Limit,LEVNr,%J,GoSask,WMSStat,KLNr + New I,R,Document,Prompt,Komm1,Komm2,Limit,LEVNr,%J,GoSask,WMSStat,KLNr,IsContextAfdrukkenVoorraad If Global="KFA" Quit $$SELECT^FLOWSELF(.NoSelNr,.DERDENr,.MultSel) If Global="KFAP" Quit $$SELECT^FLOWSELP(.NoSelNr,.DERDENr,.MultSel) Set Exist=$S($G(sScr("VTW")):1,1:$G(Exist)),MultSel=$G(MultSel),ChkWMS=$G(ChkWMS),Orgalux=$G(Orgalux),%J=$$%J^vhRtn1() @@ -100,6 +100,12 @@ .Set LEVNr="",R=$$UPTRIMAN^vhRtn1(R) .For Set LEVNr=$O(^KTO4(LEVNr)) Quit:LEVNr="" If $P($O(^KTO4(LEVNr,R_D)),D)=R Set R=$P($O(^KTO4(LEVNr,R_D)),"\",2) Quit If R'<$P(Limit,D),R'>$P(Limit,"\",2),$D(@($$GLOREF("I",R))) Goto SQUIT + Set IsContextAfdrukkenVoorraad = 0 + If ($E(R,1,3) = "000") Do + . Set R = ##class(BL.Legacy.FLOW).MaakToeleveringOpBasisVanAxInformatie(R) + . Set IsContextAfdrukkenVoorraad = 1 + . If (R = 0) Goto SASK + If IsContextAfdrukkenVoorraad=1 Goto SQUIT Goto SASK SQUIT Kill ^HULP($J),^HULP(%J) Set FP=1901 Write @F,@F1