Index: WS/Vhisie4/KlantDocument/KlantDocumentService.cls.xml
===================================================================
diff -u -r48772 -r48898
--- WS/Vhisie4/KlantDocument/KlantDocumentService.cls.xml (.../KlantDocumentService.cls.xml) (revision 48772)
+++ WS/Vhisie4/KlantDocument/KlantDocumentService.cls.xml (.../KlantDocumentService.cls.xml) (revision 48898)
@@ -24,7 +24,7 @@
%Boolean
-1
+0
@@ -52,6 +52,11 @@
1
+
+vhLib.Logger
+1
+
+
1
1
@@ -63,6 +68,7 @@
Set ..KlantIdConverter = ##class(WSimpl.Vhisie4.KlantIdConverter).%New()
Set ..ProductIdConverter = ##class(WSimpl.Vhisie4.ProductIdConverter).%New()
Set ..OrderBeperker = ##class(WSimpl.Vhisie4.OrderBeperker).%New()
+ Set ..Logger = ##class(vhLib.Logger).%New()
Quit $$$OK
]]>
@@ -93,11 +99,13 @@
Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
- #dim HistoriekGroepIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
+ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("KlantIdAx2A") {
+ #dim HistoriekGroepIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
- While (HistoriekGroepIterator.HasNext()) {
- #dim HistoriekGroep As WS.Vhisie4.KlantDocument.dto.HistoriekGroep = HistoriekGroepIterator.Next()
- Set HistoriekGroep.Producten = ..ProductIdConverter.ConvertProductInfoToAx(HistoriekGroep.Producten)
+ While (HistoriekGroepIterator.HasNext()) {
+ #dim HistoriekGroep As WS.Vhisie4.KlantDocument.dto.HistoriekGroep = HistoriekGroepIterator.Next()
+ Set HistoriekGroep.Producten = ..ProductIdConverter.ConvertProductInfoToAx(HistoriekGroep.Producten)
+ }
}
Quit Response
@@ -128,14 +136,16 @@
Set:$$$Not(..#RunAX) Response = ##class(AX.Uitgaand.EC.Data.impl.OrdersOphalen).%New(Request).GeefResponse()
Set:..#RunAX Response = ##class(AX.Uitgaand.EC.DataAX.impl.OrdersOphalen).%New(Request).GeefResponse()
- Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
- Set Response.Lijst = ..OrderBeperker.GeefBeperkteLijst(Response.Lijst, ##class(WSimpl.Vhisie4.OrderBeperker.Filter).%New())
+ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("KlantIdAx2A") {
+ Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
+ Set Response.Lijst = ..OrderBeperker.GeefBeperkteLijst(Response.Lijst, ##class(WSimpl.Vhisie4.OrderBeperker.Filter).%New())
- #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
+ #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
- While (HoofdingIterator.HasNext()) {
- #dim Hoofding As WS.Vhisie4.KlantDocument.dto.OrderHoofding = HoofdingIterator.Next()
- Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ While (HoofdingIterator.HasNext()) {
+ #dim Hoofding As WS.Vhisie4.KlantDocument.dto.OrderHoofding = HoofdingIterator.Next()
+ Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ }
}
Quit Response
@@ -165,13 +175,15 @@
Set:$$$Not(..#RunAX) Response = ##class(AX.Uitgaand.EC.Data.impl.FacturenOphalen).%New(Request).GeefResponse()
Set:..#RunAX Response = ##class(AX.Uitgaand.EC.DataAX.impl.FacturenOphalen).%New(Request).GeefResponse()
- Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
+ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("KlantIdAx2A") {
+ Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
- #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
+ #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
- While (HoofdingIterator.HasNext()) {
- #dim Hoofding As WS.Vhisie4.KlantDocument.dto.FactuurHoofding = HoofdingIterator.Next()
- Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ While (HoofdingIterator.HasNext()) {
+ #dim Hoofding As WS.Vhisie4.KlantDocument.dto.FactuurHoofding = HoofdingIterator.Next()
+ Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ }
}
Quit Response
@@ -200,13 +212,15 @@
Set:$$$Not(..#RunAX) Response = ##class(AX.Uitgaand.EC.Data.impl.OffertesOphalen).%New(Request).GeefResponse()
Set:..#RunAX Response = ##class(AX.Uitgaand.EC.DataAX.impl.OffertesOphalen).%New(Request).GeefResponse()
- Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
+ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("KlantIdAx2A") {
+ Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response.KlantId)
- #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
+ #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
- While (HoofdingIterator.HasNext()) {
- #dim Hoofding As WS.Vhisie4.KlantDocument.dto.OfferteHoofding = HoofdingIterator.Next()
- Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ While (HoofdingIterator.HasNext()) {
+ #dim Hoofding As WS.Vhisie4.KlantDocument.dto.OfferteHoofding = HoofdingIterator.Next()
+ Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ }
}
Quit Response
@@ -233,16 +247,17 @@
#dim Response As WS.Vhisie4.KlantDocument.GeefLeveringenResponse
- Set:$$$Not(..#RunAX) Response = ##class(AX.Uitgaand.EC.Data.impl.LeveringenOphalen).%New(Request).GeefResponse()
- Set:..#RunAX Response = ##class(AX.Uitgaand.EC.DataAX.impl.LeveringenOphalen).%New(Request).GeefResponse()
+ Set Response = ##class(AX.Uitgaand.EC.Data.impl.LeveringenOphalen).%New(Request).GeefResponse()
- Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response)
+ If ##class(TECH.Config.ConfigMgr).Instance().GetBoolean("KlantIdAx2A") {
+ Set Response.KlantId = ..KlantIdConverter.ConvertToAx(Response)
- #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
+ #dim HoofdingIterator As TECH.Iterator = ##class(TECH.ListIterator).%New(Response.Lijst)
- While (HoofdingIterator.HasNext()) {
- #dim Hoofding As WS.Vhisie4.KlantDocument.dto.LeveringHoofding = HoofdingIterator.Next()
- Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ While (HoofdingIterator.HasNext()) {
+ #dim Hoofding As WS.Vhisie4.KlantDocument.dto.LeveringHoofding = HoofdingIterator.Next()
+ Set Hoofding.Lijnen = ..ProductIdConverter.ConvertProductInfoToAx(Hoofding.Lijnen)
+ }
}
Quit Response
@@ -256,16 +271,16 @@