Index: APPS/Halux/AAP/DnaCodeService.cls.xml
===================================================================
diff -u -r60113 -r60230
--- APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 60113)
+++ APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 60230)
@@ -25,8 +25,13 @@
1
+
+DOM.PM.ProductAPI
+1
+
+
-DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsApi:DOM.common.ProjectSettingsAPI=""
+DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",ProductTypeAPI:DOM.PM.impl.ProductTypeAPIimpl="",DnaCodeGenerator:APPS.Halux.AAP.DnaCodeGenerator="",ProjectSettingsApi:DOM.common.ProjectSettingsAPI="",ProductApi:DOM.PM.ProductAPI=""
1
1
%Status
@@ -37,6 +42,7 @@
Set ..DnaCodeGenerator = $$$Inject(DnaCodeGenerator, ##class(APPS.Halux.AAP.DnaCodeGenerator).%New())
Set ..ProjectSettingsApi = $$$Inject(ProjectSettingsApi, ##class(DOM.common.impl.ProjectSettingsAPI).%New())
Set ..DateTimeApi = ##class(TECH.Context).Instance().GeefDateTimeAPI()
+ Set ..ProductApi = $$$Inject(ProductApi, ##class(DOM.PM.impl.ProductAPI).%New())
Quit $$$OK
]]>
@@ -166,6 +172,7 @@
Set DnaCode.ToeleveringLijn = ToeleveringLijn.GeefID()
Set DnaCode.OrderId = ToeleveringLijn.GeefOrderID()
Set DnaCode.AanmaakTijdstip = ##class(TECH.Context).Instance().GeefDateTimeAPI().CurrentHorolog()
+ Set DnaCode.LadeCode = ..ProductApi.GeefProduct(ProductID).GeefLadeCode()
If $IsObject(Batch) {
Set DnaCode.BatchId = Batch.GeefID()
Set DnaCode.IsWegwerpPallet = Batch.GeefIsWegwerpPallet()