Index: vhTestFiles/IntegratieTests/Productie.Planning.ActieveBatches.Taorbox.Aansturing/Test005MetZijstabilisering/StartBatch/PCDataPickingOnderdelen/Data/FromHost/222222.pic
===================================================================
diff -u -r70916 -r71083
--- vhTestFiles/IntegratieTests/Productie.Planning.ActieveBatches.Taorbox.Aansturing/Test005MetZijstabilisering/StartBatch/PCDataPickingOnderdelen/Data/FromHost/222222.pic (.../222222.pic) (revision 70916)
+++ vhTestFiles/IntegratieTests/Productie.Planning.ActieveBatches.Taorbox.Aansturing/Test005MetZijstabilisering/StartBatch/PCDataPickingOnderdelen/Data/FromHost/222222.pic (.../222222.pic) (revision 71083)
@@ -4,4 +4,4 @@
P|22222|222222|TAX 1 5000|A01_003|1|0|0||02044824|760H3000S MOVENTO MP ZN|L G|||||
P|22222|222222|TAX 1 5000|A03_013|1|0|0||70021932|T51.7601VH TAOR L R737|Z T|||||
P|22222|222222|TAX 1 5000|A03_015|1|0|0||70021943|T51.7601VH TAOR R R737|X D|||||
-P|22222|222222|TAX 1 5000|A04_012|1|0|0||ZONDERLOC|Zonder vaste locatie||||||
+P|22222|222222|TAX 1 5000|A04_020|1|0|0||06987956|ZS7M750MU SE-ST14 V1R737||||||
Index: APPS/Halux/PPS/DocumentGenerator/PickingOnderdelen.cls.xml
===================================================================
diff -u -r71010 -r71083
--- APPS/Halux/PPS/DocumentGenerator/PickingOnderdelen.cls.xml (.../PickingOnderdelen.cls.xml) (revision 71010)
+++ APPS/Halux/PPS/DocumentGenerator/PickingOnderdelen.cls.xml (.../PickingOnderdelen.cls.xml) (revision 71083)
@@ -29,13 +29,18 @@
1
+
+TECH.Query.QueryAPI
+1
+
+
APPS.Halux.PPS.Activiteit.impl.common.dto.OnderdelenPickingUitvoeringInfoRepository
1
-FileUtils:TECH.File.impl.FileUtils="",FileWriter:TECH.File.FileWriter="",OnderdelenPickingUitvoeringInfoRepository:APPS.Halux.PPS.Activiteit.impl.common.dto.OnderdelenPickingUitvoeringInfoRepository="",ProductAPI:DOM.PM.impl.ProductAPI=""
+FileUtils:TECH.File.impl.FileUtils="",FileWriter:TECH.File.FileWriter="",OnderdelenPickingUitvoeringInfoRepository:APPS.Halux.PPS.Activiteit.impl.common.dto.OnderdelenPickingUitvoeringInfoRepository="",ProductAPI:DOM.PM.impl.ProductAPI="",QueryAPI:TECH.Query.QueryAPI=""
1
1
%Status
@@ -45,6 +50,7 @@
Set ..FileWriter = $$$Inject(FileWriter, ##class(TECH.Context).Instance().GeefFileAPI().GeefFileWriter())
Set ..OnderdelenPickingUitvoeringInfoRepository = $$$Inject(OnderdelenPickingUitvoeringInfoRepository, ##class(APPS.Halux.PPS.Activiteit.impl.common.dto.OnderdelenPickingUitvoeringInfoRepository).%New())
Set ..ProductAPI = $$$Inject(ProductAPI, ##class(DOM.PM.impl.ProductAPI).%New())
+ set ..QueryAPI = $$$Inject(QueryAPI, ##class(TECH.Context).Instance().GeefQueryAPI())
Set ..Logger = ##class(vhLib.Logger).%New("DocumentGeneratorService")
Quit $$$OK
@@ -128,6 +134,7 @@
#dim LookupService As OBJTimpl.PM.OBJTIdentLookupService = ##class(OBJTimpl.PM.OBJTIdentLookupService).%New()
#dim ToeleveringID As %String = Toelevering.GeefID()
#dim TijdelijkeBestandNaam As %String = ##class(TECH.StringUtils).Replace(BestandNaam, ".pic", ".temp")
+ #dim IsTAORProductMetSpecialeRegels As %Boolean
#dim Product As Prod.Product
Set AantalVerschillendeProductenZonderLocatie = 0
@@ -157,12 +164,20 @@
Set UserField4 = ""
Set UserField5 = ""
Set UserField6 = ""
+ Set IsTAORProductMetSpecialeRegels = ((Categorie = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) && (..IsTAORSynchronisatieStangProduct(LaatsteProductId) || ..IsTAORZijstabiliseringProduct(LaatsteProductId)))
- If $$$Not(PCDataLocatie = "") && $$$Not(HalffabIsBewerkt) {
+ If (IsTAORProductMetSpecialeRegels) {
+ If (..IsTAORSynchronisatieStangProduct(LaatsteProductId)) {
+ Set PCDataLocatie = "A04_016"
+ } ElseIf(..IsTAORZijstabiliseringProduct(LaatsteProductId)) {
+ Set PCDataLocatie = "A04_020"
+ }
Do ..FileWriter.WriteLine("P" _"|"_ $Extract(ToeleveringID,2,6) _"|"_ BoxBarcode _"|"_ OrderDesc _"|"_ PCDataLocatie _"|"_ Aantal _"|"_ PickedAmount _"|"_ PackAmount _"|"_ SourceEmpty _"|"_ OBJTIdentNr _"|"_ KortTekst _"|"_ HLXLocatie _"|"_ UserField2 _"|"_ UserField3 _"|"_ UserField4 _"|"_UserField5 _"|"_ UserField6)
+ } ElseIf $$$Not(PCDataLocatie = "") && $$$Not(HalffabIsBewerkt) {
+ Do ..FileWriter.WriteLine("P" _"|"_ $Extract(ToeleveringID,2,6) _"|"_ BoxBarcode _"|"_ OrderDesc _"|"_ PCDataLocatie _"|"_ Aantal _"|"_ PickedAmount _"|"_ PackAmount _"|"_ SourceEmpty _"|"_ OBJTIdentNr _"|"_ KortTekst _"|"_ HLXLocatie _"|"_ UserField2 _"|"_ UserField3 _"|"_ UserField4 _"|"_UserField5 _"|"_ UserField6)
} Else {
- If $$$Not(PCDataLocatie = "") {
- Do ..Logger.Info("Onbekende locatie", "Product '" _ IdentNr _"' heeft geen gekende PCData locatie.")
+ If (PCDataLocatie = "") {
+ Do ..Logger.Info("Onbekende locatie", "Product '" _ IdentNr _"' heeft geen gekende PCData locatie.")
}
Set AantalVerschillendeProductenZonderLocatie = AantalVerschillendeProductenZonderLocatie + 1
}
@@ -327,6 +342,42 @@
Do AansturingActie.MaakDocumentenVoorUitvoeringInfoLijst(UitvoeringInfoLijst, ToeleveringID)
]]>
+
+
+ProductId:%Decimal
+%Boolean
+
+
+
+
+ProductId:%Decimal
+%Boolean
+
+