Index: BL/Legacy/FLOWTOE.cls.xml
===================================================================
diff -u -r56695 -r56696
--- BL/Legacy/FLOWTOE.cls.xml (.../FLOWTOE.cls.xml) (revision 56695)
+++ BL/Legacy/FLOWTOE.cls.xml (.../FLOWTOE.cls.xml) (revision 56696)
@@ -192,6 +192,8 @@
#dim mdMapping As %String
Do ..HaalOpSortKeyMapping(TOENr, .mdMapping)
+ ;Quit:($$$Not($$$HasLength($G(^mdMapping(TOENr)))))
+
#dim mdWaarde As %String
#dim Korttekst As %String = Product.GeefKorttekst()
#dim DimensieDxB As %String = $Extract(Korttekst,12,19)
@@ -244,6 +246,79 @@
]]>
+
+
+Oproepen via :
+ Do ##class(BL.Legacy.FLOWTOE).TestToeleveringLijnenAdHocSplitsen(TOENr)
+1
+ToeleveringId:%String,TonenMetVolledigeSortKey:%Boolean=""
+1
+%String
+ 0 {
+ Set Product = ProductAPI.GeefProduct(PRNr)
+ If LEVNr=6332 {
+ Set Leverdag = ##class(BL.Legacy.FLOWTOE).GeefLeverdag(Toelevering,TLNr)
+ Set:($Length(Leverdag)) SortKey = ProductieService.GeefCategorie(Product.GeefID())_" "_ProductieService.GeefProductieGroep(KlantID,Product.GeefID())_" "_Leverdag
+ }
+ Else {
+ Set SortKey = "LEVNr"_LEVNr_";"
+ }
+ If ##class(BL.Legacy.FLOWTOE).IsToeleveringLijnVoorSpaceTowerProduct(Toelevering,TLNr) Set SortKey = OrderLijnVolgnummer
+ Set SortKeyViaMapping = SortKey
+ Do ##class(BL.Legacy.FLOWTOE).PasAanSortKeyViaMapping(.SortKeyViaMapping,Product,TOENr,TLNr,KlantID)
+ If $$$Not(TonenMetVolledigeSortKey) {
+ Set SortKeyViaMapping = ##class(TECH.StringUtils).Replace(SortKeyViaMapping, SortKey, "")
+ }
+ }
+ Else {
+ Set SortKey=$G(LastSortKey)
+ }
+ Set:(SortKey="") SortKey="0000"
+ Set LastSortKey = SortKey
+
+ Set arSplit(SortKey,TLNr) = ""
+
+ Set arSplit2($$$LabelSubTotaal, SortKeyViaMapping) = $G(arSplit2($$$LabelSubTotaal, SortKeyViaMapping)) + LijnAantal
+ Set arSplit2($$$LabelGroepKey, SortKeyViaMapping, TLNr)=" #:"_$J(LijnAantal,2) _ " - " _ Product.GeefKorttekst()
+ }
+
+ Write !,!
+ zw arSplit2
+]]>
+
+
1
Toelevering:DOM.AKP.Toelevering,ToeleveringLijnNr:%String