Index: AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml =================================================================== diff -u -r48405 -r49925 --- AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml (.../DocumentOphalen.cls.xml) (revision 48405) +++ AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml (.../DocumentOphalen.cls.xml) (revision 49925) @@ -44,8 +44,8 @@ Set %ECSession=##class(Derde.EC.Session).%New() Set %ECSession.Taal=%Taal - If ((..Request.DocumentType = "Factuur") && (##class(TECH.StringUtils).StartsWith(..Request.DocumentId,"VF"))) || (..Request.DocumentType = "Order") { - #dim Bestandsnaam As %String = ##class(AXimpl.Dynamics.DocumentLocationOut.DocumentLocationService).%New().GeefBestandslocatie(..Request.DocumentId, ..GeefDocumentType()) + If ((..Request.DocumentType = "Factuur") && (##class(TECH.StringUtils).StartsWith(..Request.DocumentId,"VF")||##class(TECH.StringUtils).StartsWith(..Request.DocumentId,"VC"))) || ((..Request.DocumentType = "Order")&& (##class(TECH.StringUtils).StartsWith(..Request.DocumentId,"VO"))) { + #dim Bestandsnaam As %String = ##class(AXimpl.Dynamics.DocumentLocationOut.DocumentLocationService).%New().GeefBestandslocatie(..Request.DocumentId, ..Request.DocumentType) Set ..DocURL = ##class(BL.EC.Data).%New().GetDocumentURLDirect(..Request.Header.SessieId,Bestandsnaam) } Else { Set ..DocURL = ##class(BL.EC.Data).%New().GetDocumentURL(..Request.Header.SessieId,..GeefDocumentType(),..GeefResultaatType(),..Request.DocumentId,..Request.Header.KlantId)