diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 9292e9dab..8dfcc177b 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -6702,11 +6702,17 @@ Public Class ClsPaginas
Dim ImgCBB As String
Dim RutaFormato As String = String.Format("{0}Formatos\Nomina.rdlc", RutaEmpresa)
Dim RutaFormatoDefault As String = String.Format("Empresas\Grales\Formatos\Nomina.rdlc")
+ Dim CFDIVersion As String = ""
+ Dim UsoCFDI As String = ""
+
+
+
'SI ESTA TIMBRADA - CON XML
If System.IO.File.Exists(PathXML) Then
Dim XmlDoc As New System.Xml.XmlDocument
'XmlDoc.Load(Ruta & "XML\\Nomina\NOM A-3845.xml")
XmlDoc.Load(PathXML)
+
If ValorNodoXML(XmlDoc.DocumentElement, "version").Contiene("3.3", "4.0") Then
FechaEmision = XmlDoc.DocumentElement.Attributes("Fecha").InnerText.ToDate
NoSerieCertificadoContribuyente = XmlDoc.DocumentElement.Attributes("NoCertificado").InnerText
@@ -6733,6 +6739,27 @@ Public Class ClsPaginas
Next
End If
+
+
+ Try
+ CFDIVersion = ValorNodoXML(XmlDoc.DocumentElement, "version")
+
+
+ Dim nsManager As New XmlNamespaceManager(XmlDoc.NameTable)
+ nsManager.AddNamespace("cfdi", If(CFDIVersion = "4.0", "http://www.sat.gob.mx/cfd/4", "http://www.sat.gob.mx/cfd/3"))
+
+ Dim receptorNode As XmlNode = XmlDoc.SelectSingleNode("/cfdi:comprobante/cfdi:emisor/cfdi:receptor", nsManager)
+
+ If receptorNode IsNot Nothing Then
+ UsoCFDI = ValorNodoXML(receptorNode, "usocfdi")
+ UsoCFDI = GlobalDTSATUsosCFDI(-1, "-1").FiltroPrimeroValor("UsoCFDIDescripcion", $" UsoCFDI = '{UsoCFDI}' ")
+ End If
+
+
+ Catch ex As Exception
+
+ End Try
+
'SIN TIMBRAR - SIN XML
Else
FolioFiscal = "Sin Timbrar"
@@ -6860,6 +6887,9 @@ Public Class ClsPaginas
RptParametro.Add(New ReportParameter("CadenaOriginal", CadenaOriginalCFD))
RptParametro.Add(New ReportParameter("QR", ImgCBB.ToString))
+ RptParametro.Add(New ReportParameter("CFDIVersion", CFDIVersion))
+ RptParametro.Add(New ReportParameter("UsoCFDI", UsoCFDI))
+
Dim LSRds As New List(Of ReportDataSource)
Dim rds2 = New ReportDataSource()
diff --git a/Compras/eFacturas.aspx b/Compras/eFacturas.aspx
index e53333212..d5ac164f8 100644
--- a/Compras/eFacturas.aspx
+++ b/Compras/eFacturas.aspx
@@ -203,7 +203,45 @@
-
+
+
+
+
+
+
+
+
diff --git a/Empresas/119/Formatos/Nomina.rdlc b/Empresas/119/Formatos/Nomina.rdlc
index 871861e56..fda0e1d71 100644
--- a/Empresas/119/Formatos/Nomina.rdlc
+++ b/Empresas/119/Formatos/Nomina.rdlc
@@ -2858,7 +2858,15 @@ Lugar de expedición: 83220 Hermosillo
- Versión del comprobante: 4.0
+ Versión del comprobante:
+
+
+
+ =Parameters!CFDIVersion.Value
+
+
+ =Parameters!UsoCFDI.Value
2
- true
@@ -5629,6 +5644,18 @@ Lugar de expedición: 83220 Hermosillo
true
ReportParameter1
+
+ String
+ true
+ true
+ ReportParameter1
+
+
+ String
+ true
+ true
+ ReportParameter1
+
diff --git a/Empresas/153/Formatos/Nomina.rdlc b/Empresas/153/Formatos/Nomina.rdlc
index 0d8b4fcce..410a17868 100644
--- a/Empresas/153/Formatos/Nomina.rdlc
+++ b/Empresas/153/Formatos/Nomina.rdlc
@@ -2852,7 +2852,15 @@
- Versión del comprobante: 3.3
+ Versión del comprobante:
+
+
+
+ =Parameters!CFDIVersion.Value
+
+
+ =Parameters!UsoCFDI.Value
2
+ true
@@ -2852,7 +2853,15 @@
- Versión del comprobante: 3.3
+ Versión del comprobante:
+
+
+
+ =Parameters!CFDIVersion.Value
+
+
+ =Parameters!UsoCFDI.Value
+
+
+ =Parameters!CFDIVersion.Value
+
+
+ =Parameters!UsoCFDI.Value
+
+
+
+
+
+ Textbox5
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Parameters!SubProyecto.Value
+
+
+
+
+
+
+ Textbox7
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+ 2
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox16
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox19
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox21
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox22
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox23
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
0.49417cm
@@ -5279,13 +5525,14 @@ Lugar de expedición: 83220 Hermosillo
+
DsOC
- 2.51578cm
+ 2.33057cm
0.15979cm
- 5.0304cm
- 19.84967cm
+ 5.44519cm
+ 19.84968cm
9
- 18.41425cm
+ 18.46717cm