diff --git a/App_Code/ClsClientes.vb b/App_Code/ClsClientes.vb
index 1b805eda7..5f3c30c86 100644
--- a/App_Code/ClsClientes.vb
+++ b/App_Code/ClsClientes.vb
@@ -172,6 +172,9 @@ Public Class ClsClientes
End Get
End Property
+ Public Property CodigoRegimenFiscal As String
+ Public Property RegimenFiscal As String
+
#End Region
Sub New(Optional TransaccionCompartida As SqlTransaction = Nothing)
@@ -426,6 +429,9 @@ Public Class ClsClientes
_BonificacionUsado = CBool(Data(0)("BonificacionUsado"))
_CveSATEstado = Data(0)("CveSATEstado").ToString.ToEntero
+ _RegimenFiscal = Data(0)("RegimenFiscal").ToString
+ _CodigoRegimenFiscal = Data(0)("CodigoRegimenFiscal").ToString
+
End If
Retorno = True
Catch ex As Exception
@@ -435,6 +441,8 @@ Public Class ClsClientes
Return Retorno
End Function
+
+
Public Function GetSiguienteCodigoCliente(CveEmpresa As Integer) As Integer
Dim Codigo As Integer = 0
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index b4a2ef02c..4f690b468 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -6012,11 +6012,17 @@ Public Class ClsPaginas
RutaReporte = String.Format("{0}{1}", bdir, RutaReporte)
End If
- If EsProduccion AndAlso SubReportData Is Nothing Then
+ If EsProduccion Then
- Dim wsreport As New WSRDLC.WebServiceSoapClient
- Dim params As New List(Of WSRDLC.ReportParameter)
- Dim reportobjects As New List(Of WSRDLC.ReportObjects)
+ Dim wsreport As New WSRDLC2.WebServiceSoapClient
+ Dim params As New List(Of WSRDLC2.ReportParameter)
+ Dim reportobjects As New List(Of WSRDLC2.ReportObjects)
+
+ Dim jsonData As String = Nothing
+
+ If SubReportData IsNot Nothing Then
+ jsonData = Newtonsoft.Json.JsonConvert.SerializeObject(SubReportData)
+ End If
Dim ds As New DataSet
For Each rpds As ReportDataSource In DataSource
@@ -6026,7 +6032,7 @@ Public Class ClsPaginas
dt.TableName = rpds.Name
ds.Tables.Add(dt)
Else
- Dim ojext As New WSRDLC.ReportObjects
+ Dim ojext As New WSRDLC2.ReportObjects
ojext.Name = rpds.Name
ojext.Value = rpds.Value
reportobjects.Add(ojext)
@@ -6034,7 +6040,7 @@ Public Class ClsPaginas
Next
For Each rpds As ReportParameter In Parametros
- Dim param As New WSRDLC.ReportParameter
+ Dim param As New WSRDLC2.ReportParameter
param.Name = rpds.Name
'SI ES TEXTO, QUITAR TABS Y OTROS ESPACIOS QUE DEN PROBLEMAS AL MANDAR LA PETICION
@@ -6047,7 +6053,7 @@ Public Class ClsPaginas
params.Add(param)
Next
- Bytes = wsreport.StreamNEWPDFBytes(RutaReporte, ds, reportobjects.ToArray(), params.ToArray(), NombreArchivo, Formato, CveEmpresa, CveUsuario)
+ Bytes = wsreport.StreamNEWPDFBytes(RutaReporte, ds, reportobjects.ToArray(), params.ToArray(), NombreArchivo, Formato, CveEmpresa, CveUsuario, jsonData)
wsreport = Nothing
params = Nothing
ds.Dispose() : ds = Nothing
@@ -8872,6 +8878,11 @@ Public Class ClsPaginas
Dim TotalLetra = ""
Dim FechaRecibo = ""
+ Dim RegimenFiscalCodigo As String = ""
+ Dim CFDIVersion As String = If(UsuarioActual.Empresa.Funcionalidad(350) = "1", "4.0", "3.3")
+
+
+
'DT PAGO
Dim DTConceptosPago As New DataTable
@@ -8896,6 +8907,47 @@ Public Class ClsPaginas
DTConceptosPagoRelacionado.Columns.Add("TipoCambioDR", GetType(String))
DTConceptosPagoRelacionado.Columns.Add("ObjetoImpDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra001ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra001TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra001TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra001ImporteDR", GetType(Decimal))
+
+ DTConceptosPagoRelacionado.Columns.Add("Tra002ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra002TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra002TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra002ImporteDR", GetType(Decimal))
+
+ DTConceptosPagoRelacionado.Columns.Add("Tra003ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra003TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra003TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Tra003ImporteDR", GetType(Decimal))
+
+
+ DTConceptosPagoRelacionado.Columns.Add("Ret001ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret001TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret001TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret001ImporteDR", GetType(Decimal))
+
+ DTConceptosPagoRelacionado.Columns.Add("Ret002ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret002TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret002TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret002ImporteDR", GetType(Decimal))
+
+ DTConceptosPagoRelacionado.Columns.Add("Ret003ImpuestoDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret003TipoFactorDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret003TasaOCuotaDR", GetType(String))
+ DTConceptosPagoRelacionado.Columns.Add("Ret003ImporteDR", GetType(Decimal))
+
+
+
+ '001 ISR
+ '002 IVA
+ '003 IEPS
+ 'Impuetos
+ 'Retenciones
+
+
+
Dim ObjBancos As New ClsBancos
If ObjBancos.GetComplementoPagos(CveComplementoPago, CveIE, CveVenta, UsuarioActual.CveEmpresa) Then
Serie = ObjBancos.DtResultados.FiltroPrimeroValor("Serie")
@@ -8938,6 +8990,14 @@ Public Class ClsPaginas
params.Add(New ReportParameter("ClienteEstado", ObjClientes.Estado))
params.Add(New ReportParameter("ClienteCP", ObjClientes.CP))
params.Add(New ReportParameter("ClienteRFC", ObjClientes.RFC))
+
+
+ If UsuarioActual.Empresa.Funcionalidad(350) = "1" Then
+ If ObjClientes.CodigoRegimenFiscal.ToString.Length > 0 Then
+ RegimenFiscalCodigo = $"{ObjClientes.CodigoRegimenFiscal}-{ObjClientes.RegimenFiscal}"
+ End If
+ End If
+
End If
ObjClientes.Dispose()
@@ -8974,6 +9034,7 @@ Public Class ClsPaginas
Dim validaElemento = XmlDoc.DocumentElement("cfdi:Complemento")
Dim validaElementoPago = XmlDoc.DocumentElement("cfdi:Conceptos")
+
If Version = "3.3" Then
cfdVer = "http://www.sat.gob.mx/cfd/3"
PagoVersion = "pago10"
@@ -8981,6 +9042,19 @@ Public Class ClsPaginas
cfdVer = "http://www.sat.gob.mx/cfd/4"
End If
+
+ If Version = "4.0" Then
+
+ If UsuarioActual.Empresa.Funcionalidad(350) = "1" Then
+ params.Add(New ReportParameter("CFDIVersion", Version))
+ If ObjClientes.CodigoRegimenFiscal.ToString.Length > 0 Then
+ params.Add(New ReportParameter("RegimenFiscalCodigo", RegimenFiscalCodigo))
+ End If
+ End If
+ End If
+
+
+
namespaces.AddNamespace(Prefijo, cfdVer)
namespaces.AddNamespace("tfd", "http://www.sat.gob.mx/TimbreFiscalDigital")
namespaces.AddNamespace("implocal", "http://www.sat.gob.mx/implocal")
@@ -9044,7 +9118,92 @@ Public Class ClsPaginas
If Version = "4.0" Then DrRelacionado("ObjetoImpDR") = Relacionado.Attributes("ObjetoImpDR").Value
DrRelacionado("MonedaDR") = Relacionado.Attributes("MonedaDR").Value
+
+
+ If UsuarioActual.Empresa.Funcionalidad(350) = "1" AndAlso Version = "4.0" Then
+
+
+
+ ' Relacionado.SelectSingleNode($"//{PagoVersion}:ImpuestosDR/{PagoVersion}:TrasladosDR/{PagoVersion}:TrasladoDR", namespaces)
+
+ 'Dim NodoImpuestosDR As XmlNode = Relacionado.SelectSingleNode($"{PagoVersion}:ImpuestosDR", namespaces)
+ 'Dim NodoTrasladosDR As XmlNode = NodoImpuestosDR.SelectSingleNode($"{PagoVersion}:TrasladosDR", namespaces)
+ 'Dim TrasladoDR As XmlNodeList = NodoTrasladosDR.ChildNodes
+
+ Dim NodosTraslados = Relacionado.SelectNodes($"{PagoVersion}:ImpuestosDR/{PagoVersion}:TrasladosDR/{PagoVersion}:TrasladoDR", namespaces)
+ For Each NodoTraslados As XmlNode In NodosTraslados
+
+ Dim ImpuestoDR As String = ValorXML(NodoTraslados, "ImpuestoDR") ' ImpuestoDR
+ Dim TipoFactor As String = ValorXML(NodoTraslados, "TipoFactorDR")
+ Dim TasaOCuotaDR As String = ValorXML(NodoTraslados, "TasaOCuotaDR")
+ Dim ImporteDR As Decimal = ValorXML(NodoTraslados, "ImporteDR").ToDecimal
+
+
+ If ImpuestoDR = "001" Then
+ DrRelacionado("Tra001ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Tra001TipoFactorDR") = TipoFactor
+ DrRelacionado("Tra001TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Tra001ImporteDR") = ImporteDR
+ End If
+
+ If ImpuestoDR = "002" Then
+ DrRelacionado("Tra002ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Tra002TipoFactorDR") = TipoFactor
+ DrRelacionado("Tra002TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Tra002ImporteDR") = ImporteDR
+ End If
+
+ If ImpuestoDR = "003" Then
+ DrRelacionado("Tra003ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Tra003TipoFactorDR") = TipoFactor
+ DrRelacionado("Tra003TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Tra003ImporteDR") = ImporteDR
+ End If
+
+ Next
+
+
+ For Each NodoRetenciiones As XmlNode In Relacionado.SelectNodes($"{PagoVersion}:ImpuestosDR/{PagoVersion}:RetencionesDR/{PagoVersion}:RetencionDR", namespaces)
+
+
+ Dim ImpuestoDR As String = ValorXML(NodoRetenciiones, "ImpuestoDR") ' ImpuestoDR
+ Dim TipoFactor As String = ValorXML(NodoRetenciiones, "TipoFactorDR")
+ Dim TasaOCuotaDR As String = ValorXML(NodoRetenciiones, "TasaOCuotaDR")
+ Dim ImporteDR As Decimal = ValorXML(NodoRetenciiones, "ImporteDR").ToDecimal
+
+
+ If ImpuestoDR = "001" Then
+ DrRelacionado("Ret001ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Ret001TipoFactorDR") = TipoFactor
+ DrRelacionado("Ret001TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Ret001ImporteDR") = ImporteDR
+ End If
+
+ If ImpuestoDR = "002" Then
+ DrRelacionado("Ret002ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Ret002TipoFactorDR") = TipoFactor
+ DrRelacionado("Ret002TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Ret002ImporteDR") = ImporteDR
+ End If
+
+ If ImpuestoDR = "003" Then
+ DrRelacionado("Ret003ImpuestoDR") = ImpuestoDR
+ DrRelacionado("Ret003TipoFactorDR") = TipoFactor
+ DrRelacionado("Ret003TasaOCuotaDR") = TasaOCuotaDR
+ DrRelacionado("Ret003ImporteDR") = ImporteDR
+ End If
+
+ Next
+
+
+
+
+ End If
+
DTConceptosPagoRelacionado.Rows.Add(DrRelacionado)
+
+
+
Next
End If
diff --git a/App_WebReferences/WSRDLC2/Reference.svcmap b/App_WebReferences/WSRDLC2/Reference.svcmap
new file mode 100644
index 000000000..070b96bcb
--- /dev/null
+++ b/App_WebReferences/WSRDLC2/Reference.svcmap
@@ -0,0 +1,31 @@
+
+
+
+ false
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Auto
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_WebReferences/WSRDLC2/WebService.disco b/App_WebReferences/WSRDLC2/WebService.disco
new file mode 100644
index 000000000..4b396211d
--- /dev/null
+++ b/App_WebReferences/WSRDLC2/WebService.disco
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_WebReferences/WSRDLC2/WebService.wsdl b/App_WebReferences/WSRDLC2/WebService.wsdl
new file mode 100644
index 000000000..b23b74472
--- /dev/null
+++ b/App_WebReferences/WSRDLC2/WebService.wsdl
@@ -0,0 +1,312 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_WebReferences/WSRDLC2/configuration.svcinfo b/App_WebReferences/WSRDLC2/configuration.svcinfo
new file mode 100644
index 000000000..23094d5e1
--- /dev/null
+++ b/App_WebReferences/WSRDLC2/configuration.svcinfo
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/App_WebReferences/WSRDLC2/configuration91.svcinfo b/App_WebReferences/WSRDLC2/configuration91.svcinfo
new file mode 100644
index 000000000..c794b474d
--- /dev/null
+++ b/App_WebReferences/WSRDLC2/configuration91.svcinfo
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+ WebServiceSoap1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ StrongWildcard
+
+
+
+
+
+ 65536
+
+
+
+
+
+
+
+
+ System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ System.Text.UTF8Encoding
+
+
+ Buffered
+
+
+
+
+
+ Text
+
+
+ System.ServiceModel.Configuration.BasicHttpSecurityElement
+
+
+ None
+
+
+ System.ServiceModel.Configuration.HttpTransportSecurityElement
+
+
+ None
+
+
+ None
+
+
+ System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement
+
+
+ Never
+
+
+ TransportSelected
+
+
+ (Collection)
+
+
+
+
+
+ System.ServiceModel.Configuration.BasicHttpMessageSecurityElement
+
+
+ UserName
+
+
+ Default
+
+
+
+
+
+
+
+
+ http://localhost:7999/WebService.asmx
+
+
+
+
+
+ basicHttpBinding
+
+
+ WebServiceSoap1
+
+
+ WSRDLC2.WebServiceSoap
+
+
+ System.ServiceModel.Configuration.AddressHeaderCollectionElement
+
+
+ <Header />
+
+
+ System.ServiceModel.Configuration.IdentityElement
+
+
+ System.ServiceModel.Configuration.UserPrincipalNameElement
+
+
+
+
+
+ System.ServiceModel.Configuration.ServicePrincipalNameElement
+
+
+
+
+
+ System.ServiceModel.Configuration.DnsElement
+
+
+
+
+
+ System.ServiceModel.Configuration.RsaElement
+
+
+
+
+
+ System.ServiceModel.Configuration.CertificateElement
+
+
+
+
+
+ System.ServiceModel.Configuration.CertificateReferenceElement
+
+
+ My
+
+
+ LocalMachine
+
+
+ FindBySubjectDistinguishedName
+
+
+
+
+
+ False
+
+
+ WebServiceSoap1
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Bancos/IE.aspx b/Bancos/IE.aspx
index 768a9a830..30ed7e51e 100644
--- a/Bancos/IE.aspx
+++ b/Bancos/IE.aspx
@@ -30,8 +30,8 @@
Actualizar Tipo Cambio
-
- PrePoliza
+
+ PrePoliza
<%--
@@ -44,18 +44,18 @@
Cheque Devuelto
- Cancelar Movimiento
+ Cancelar Movimiento
Eliminar Movimiento
-
+
<%--
Refacturar Complemento
--%>
- Cancelar Movimiento y Complemento
+ <%-- Cancelar Movimiento y Complemento--%>
<%-- data-original-title="¿Está seguro que desea cancelar el documento?" data-btn-ok-label="si" Style="color: #686868;">
@@ -126,10 +126,10 @@
-
-
-
- <%--
--%>
+
+
@@ -147,24 +147,25 @@
-
-
+
+
T.C.:
-
-
-
+
+
+
+
-
-
-
-
+
Dolares
-
+
+
<%--
--%>
-
-
+
@@ -217,15 +218,15 @@
-
+
-
@@ -280,8 +281,8 @@
-
-
+
+
@@ -294,13 +295,13 @@
-
-
+
-
-
+
+
@@ -493,7 +494,7 @@
-
+
@@ -887,7 +888,7 @@
|
-
+
@@ -1029,8 +1030,8 @@
-
-
+
+
@@ -1042,7 +1043,7 @@
-
+
@@ -1066,8 +1067,8 @@
Agregar
--%>
-
-
+
+
@@ -1248,12 +1249,52 @@
+
+
+ Cuenta Devolución:
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ Cancelar Complemento
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -1448,7 +1488,7 @@
@@ -1547,7 +1587,7 @@
-
+ <%--
@@ -1563,13 +1603,6 @@
- <%--
¿Cual de las siguientes acciones es la que desea realizar?
-
-
- Cancelar Complemento
- Cancelar Pago y Complemento
- --%>
-
@@ -1630,7 +1663,8 @@
-
+ --%>
+
@@ -1800,7 +1834,7 @@
function ValidarCantidad(t, c) {
var Ot = 0.00;
// considera importe de OT ingresos, para que se peuda exceder
- if ($get('TxtOtrosIngresosEgresos')) { Ot = ToDouble($get('TxtOtrosIngresosEgresos').value);}
+ if ($get('TxtOtrosIngresosEgresos')) { Ot = ToDouble($get('TxtOtrosIngresosEgresos').value); }
t.value = (ToDouble(t.value) > ToDouble(c) + Ot ? c : t.value)
}
@@ -1814,10 +1848,10 @@
}
- function SelectorNotas(Chk) {
+ function SelectorNotas(Chk) {
$(`.CssSelector input[type=checkbox]`).each(function () {
- $(this).prop('checked', Chk.checked);
+ $(this).prop('checked', Chk.checked);
});
FCSumaTotalesNotas()
@@ -1830,7 +1864,7 @@
$(`.CssSelector input[type=checkbox]`).each(function () {
if ($(this).is(":checked")) {
Total += parseFloat($(this).attr("data-saldo"));
- }
+ }
});
@@ -1838,22 +1872,22 @@
$(`#TxtImporte`).val(Total);
- FormatoMoneda( $get("TxtImporte"));
+ FormatoMoneda($get("TxtImporte"));
} else {
$(`#TxtImporte`).val("");
- }
+ }
}
- function DeshabilitarTxt(){
+ function DeshabilitarTxt() {
return false;
}
function CambiaTCPagoOC() {
-
+
$("#LnkActualizaTCOC").click();
}
diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb
index e845a08e3..663af2a18 100644
--- a/Bancos/IE.aspx.vb
+++ b/Bancos/IE.aspx.vb
@@ -6,6 +6,7 @@ Imports Extensiones
Imports System.Web.Services
Imports System.IO
Imports Microsoft.Reporting.WebForms
+Imports System.Xml
Partial Class Bancos_IE
Inherits ClsPaginas
@@ -629,6 +630,13 @@ Partial Class Bancos_IE
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
+
+ 'PDFReciboDePagos(-1, 1336198, 87212, False) '--pago20
+ 'PDFReciboDePagos(-1, 1361624, 87916, False) '--pago20
+
+ ''PDFReciboDePagos(-1, 1304037, 87219, False)
+ 'Exit Sub
+
Me.CveCorte = -1
Folio = ""
IDCtaBeneficiario = 0
@@ -1120,7 +1128,8 @@ Partial Class Bancos_IE
End If
'LnkCancelarComplemento.Visible = False
- LnkCancelarComplementoImporte.Visible = False
+ 'LnkCancelarComplementoImporte.Visible = False
+ DivCancelarComplemento.Visible = False
UppEliminarIE.Update()
@@ -1296,7 +1305,8 @@ Partial Class Bancos_IE
'LnkCancelar.Visible = False
'LnkCancelarComplemento.Visible = True
- LnkCancelarComplementoImporte.Visible = True
+ 'LnkCancelarComplementoImporte.Visible = True
+ DivCancelarComplemento.Visible = True
End If
@@ -1304,7 +1314,8 @@ Partial Class Bancos_IE
Else
BtnEditar.Visible = False
' LnkCancelarComplemento.Visible = False
- LnkCancelarComplementoImporte.Visible = False
+ 'LnkCancelarComplementoImporte.Visible = False
+ DivCancelarComplemento.Visible = False
DVGenerarComplementoModal.Visible = False
End If
@@ -1833,7 +1844,6 @@ Partial Class Bancos_IE
dt = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa).FiltraParametros("CveTipoCuenta <> 1") ' quito las cajas chicas
End If
-
If pCveMoneda > 0 Then
dt = dt.FiltraParametros(String.Format("CveMoneda = {0}", pCveMoneda))
End If
@@ -4226,191 +4236,6 @@ Partial Class Bancos_IE
#End Region
- ''[IPP] IFs REEMPLAZADOS - MIRAS DE ELIMINAR 2018/08/15
- 'If Not Opcion.Contiene("DEV", "INGPC", "DevDinV") AndAlso MsgError = "" Then
-
- 'Dim TipoMovimiento As Boolean = True
-
- 'If Opcion.Contiene("ANTC") Then
- ' TipoMovimiento = False
- ' End If
-
- ''MOVIMIENTOS EGRESOS
- 'If ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtImporte.Text.ToDouble, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
- 'Dim IVA As Double = 0 ' TxtImporte.Text.ToDouble * HdnProvPorIVA.Value.ToDouble
- 'If ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, TxtImporte.Text.ToDouble - IVA - CIF, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DdlIEAcreedor.SelectedValue.ToEntero) Then
- 'If IVA > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, IVA, Ref, 19, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
- ' MsgError = "Detalle"
- ' End If
- ''intereses pagados
- 'If CIF > 0 AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, CIF, Ref, 46, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CveOC:=CveOrdenCompra, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=CIF, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario, CveIEDevolucion:=DDlCheques.SelectedValue.ToEntero) Then
- ' MsgError = "Detalle"
- ' End If
- 'Else
- ' MsgError = "no se pudo insertar el detalle de la póliza2"
- ' End If
- 'Else
- ' MsgError = "no se pudo insertar el detalle de la póliza"
- ' End If
-
-
- 'If Opcion.Contiene("EGSSINFACT") AndAlso CveSolicitudViatico > 0 AndAlso MsgError = "" Then
- 'If Not ObjIE.UpdateSolicitudesViaticosIE(CveSolicitudViatico, CveIE) Then
- ' MsgError = "Ocurrió un Error al vincular el egreso con la solicitud de viatico."
- ' End If
- 'End If
-
- ''MOVIMIENTOS INGRESOS - DEVOLUCIONES
- 'ElseIf Opcion.Contiene("DEV") AndAlso MsgError = "" Then
- 'Dim CveIEOtro As Integer = If(CveProveedor > 0 Or CvePersonal > 0, DdlIEDevolucion.SelectedValue.ToEntero, CveIE)
-
- 'If CveCliente > 0 AndAlso Not DivIvaIxC.Visible AndAlso TxtIvaIxC.Text.ToDouble = 0 Then
- ''RMF- CASO DONDE HAY UNA DEVOLUCION Y TENGO QUE AFECTAR LAS FACTURAS QUE SE HABIAN MARCADO COMO PAGADAS TENGO QUE REGRESARLAS A PENDIENTES
- 'Dim Mov As New ClsMovimientos
- 'If Mov.GetMovimientosIE(2, DdlIEDevolucion.SelectedValue.ToEntero, -1, Now, Now, 1, 0, UsuarioActual.CveEmpresa) Then
- 'Dim DtIE As DataTable = Mov.DtResultados
- 'For Each dr As DataRow In DtIE.Rows
-
- 'If MsgError = "" AndAlso Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, If(dr("TipoMovto").ToString.ToEntero = 1, False, True), If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDouble, dr("Importe").ToString.ToDouble), "", dr("CveConceptoContable").ToString.ToEntero, "", Now, IDCtaBeneficiario, -1, CveIE, CveCliente:=dr("CveCliente").ToString.ToEntero, CveVenta:=dr("CveVenta").ToString.ToEntero, ImporteMX:=If(dr("CveConceptoContable").ToString.ToEntero.Contiene(66), -TxtImporte.Text.ToDouble, -dr("Importe").ToString.ToDouble), ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario) Then
- ' MsgError = "no se pudo insertar el detalle de la póliza 2"
- ' End If
- 'Next
- ' ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDouble, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta)
-
- ' End If
- ' Mov.Dispose()
-
- ' 'Devolucion de INGxC Formato Charlie
- ' ElseIf CveCliente > 0 AndAlso DivIvaIxC.Visible Then
-
- 'Dim Mov As New ClsMovimientos
- ' 'INGxC
- ' ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -(TxtImporte.Text.ToDouble - TxtIvaIxC.Text.ToDouble), Ref, 66, Conc, Now, IDCtaContable, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-(TxtImporte.Text.ToDouble - TxtIvaIxC.Text.ToDouble), ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta)
-
- ' If TxtIvaIxC.Text.ToDouble > 0 Then
- ' 'Iva
- ' ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -TxtIvaIxC.Text.ToDouble, Ref, 61, Conc, Now, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtIvaIxC.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=UsuarioActual.Empresa.CveCuentaIVAxTrasladar)
- ' End If
-
- ' 'Bancos
- ' ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -TxtImporte.Text.ToDouble, Ref, 30, Conc, Now, IDCtaBeneficiario, -1, CveIE, CveIEDevolucion:=DdlIEDevolucion.SelectedValue.ToEntero, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=-TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario)
- ' Mov.Dispose()
-
- ' Else
- 'If ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, TxtImporte.Text.ToDouble, Ref, CveConceptoContable, Conc, Now, IDCtaContable, -1, CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaConta) Then
- 'If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, TxtImporte.Text.ToDouble, Ref, CveConceptoCompra, Conc, Now, IDCtaBeneficiario, -1, CveIE:=If(CveIEOtro < 0, CveIE, CveIEOtro), CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtImporte.Text.ToDouble, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=CveCuentaBeneficiario) Then
- ' MsgError = "no se pudo insertar el detalle de la póliza 2"
- ' End If
- 'Else
- ' MsgError = "no se pudo insertar el detalle de la póliza"
- ' End If
-
- 'End If
-
- ''Nuevo INGxC Formato Charlie
- 'ElseIf Opcion.Contiene("INGPC") AndAlso MsgError = "" Then
-
- 'Dim ConceptoContable As Integer
- 'Dim TipoMovimiento As Boolean
- 'Dim importeMovimiento As Decimal
- 'Dim FechaMovimiento As Date = Now
- 'Dim Concepto As String = ""
- 'Dim Referencia As String = TxtPagueseA.Text
-
- 'Dim importeMX As Decimal
- 'Dim Multiplicador As Integer
-
- 'If ObjMov.GetPlantillaConceptos(UsuarioActual.CveEmpresa, CvePlantillaPoliza) Then
- 'For Each Row As DataRow In ObjMov.DtResultados.Rows
-
- ' ConceptoContable = Row("CveConcepto").ToString.ToEntero
- ' TipoMovimiento = If(Row("TipoMovto").ToString = "True", True, False)
- ' importeMovimiento = 0
- ' Multiplicador = (Row("Multiplicador").ToString.ToEntero)
- ' Concepto = ObjMov.ObtenerConceptoEmpresa(UsuarioActual.CveEmpresa, ConceptoContable, TxtPagueseA.Text, "", TxtFolio.Text)
-
- ' Select Case ConceptoContable
-
- 'Case 10
- 'If RBL.SelectedValue = "P" AndAlso CveProveedor > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
- ' End If
-
- 'Case 28
- 'If RBL.SelectedValue = "FE" AndAlso CvePersonal > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
- ' End If
-
- 'Case 37
- 'If RBL.SelectedValue = "DD" AndAlso CveProveedor > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
- ' End If
-
- 'Case 41
- 'If RBL.SelectedValue = "AC" AndAlso CveProveedor > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
- ' End If
-
- 'Case 50
- 'If RBL.SelectedValue = "DP" AndAlso CveProveedor > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
- ' End If
-
- 'Case 66
- 'If RBL.SelectedValue = "C" AndAlso CveCliente > 0 Then
- ' importeMovimiento = TxtImporte.Text.ToDecimal - TxtIvaIxC.Text.ToDecimal
- ' importeMX = importeMovimiento
-
- ' 'Agregamos el IVA
- ' If DivIvaIxC.Visible AndAlso TxtIvaIxC.Text.ToDecimal <> 0 Then
- 'If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, TxtIvaIxC.Text.ToDecimal, Concepto, 61, Concepto, FechaMovimiento, UsuarioActual.Empresa.IdCuentaIVAxTrasladar, -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=TxtIvaIxC.Text.ToDecimal, ImporteME:=tImporteMonedaExtranjera, CveCuenta:=UsuarioActual.Empresa.CveCuentaIVAxTrasladar) Then
- ' MsgError = "Ocurrió un Error al registrar el asiento del ingreso."
- ' End If
- 'End If
- 'If tCveMoneda > 1 AndAlso UsuarioActual.CveEmpresa = 119 Then
- ''Agregamos complementaria
- 'Dim TC As Decimal = TxtTipoCambio.Text.ToDecimal
-
- 'If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Concepto, 226, Concepto, FechaMovimiento, IDCtaBeneficiarioComplementaria, -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=(importeMovimiento * TC - importeMovimiento).RoundSQL, ImporteME:=importeMovimiento, TipoCambio:=TC, CveCuenta:=0) Then
- ' MsgError = "Ocurrió un Error al registrar el asiento del ingreso."
- ' End If
-
- 'End If
-
- 'End If
-
- 'Case 30
- ' importeMovimiento = TxtImporte.Text.ToDecimal
- ' importeMX = importeMovimiento
-
- ' If tCveMoneda > 1 AndAlso UsuarioActual.CveEmpresa = 119 Then
- ''Agregamos complementaria
- 'Dim TC As Decimal = TxtTipoCambio.Text.ToDecimal
-
- 'If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, 0, Concepto, 204, Concepto, FechaMovimiento, IDCtaContableComplementaria, -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=(importeMovimiento * TC - importeMovimiento).RoundSQL, ImporteME:=importeMovimiento, TipoCambio:=TC, CveCuenta:=UsuarioActual.Empresa.CveCuentaIVAxTrasladar) Then
- ' MsgError = "Ocurrió un Error al registrar el asiento del ingreso."
- ' End If
-
- 'End If
-
- 'End Select
-
- 'If importeMovimiento <> 0 Then
- 'If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Concepto, ConceptoContable, Concepto, FechaMovimiento, If(ConceptoContable = 30, IDCtaContable, IDCtaBeneficiario), -1, CveIE:=CveIE, CveCompra:=CveCompra, CveProveedor:=CveProveedor, CvePersonal:=CvePersonal, CveCreditoDetalle:=CveCreditoDetalle, CveCliente:=CveCliente, ImporteMX:=importeMovimiento, ImporteME:=tImporteMonedaExtranjera, TipoCambio:=TxtTipoCambio.Text.ToDecimal, CveCuenta:=If(ConceptoContable = 30, CveCuentaConta, CveCuentaBeneficiario)) Then
- ' MsgError = "Ocurrió un Error al registrar el asiento del ingreso."
- ' End If
- 'End If
-
- 'Next
-
- 'End If
- 'End If
-
Protected Sub BtnActualizar_Click(sender As Object, e As EventArgs) Handles BtnActualizar.Click
Dim IE As New ClsBancos
@@ -4453,13 +4278,12 @@ Partial Class Bancos_IE
Protected Sub BtnCancelarIE_Click(sender As Object, e As EventArgs)
RegistraScript("$('#DivCancelarIE').modal('hide');")
Dim ExistenComplementosVigentes As Boolean = VerificaComplementos(True)
-
- If Not ExistenComplementosVigentes Then
- CancelarIE()
- Else
- Alert("No se puede cancelar documento con complementos de pago vigentes", TipoMensaje.MsgError)
+ If ExistenComplementosVigentes AndAlso DdlMotivoCancelacion.SelectedValue.ToEntero() <= 0 Then
+ Alert("Debe seleccionar un motivo de cancelación", TipoMensaje.MsgError)
+ Exit Sub
End If
+ CancelarIE(CancelarComplemento:=ExistenComplementosVigentes)
End Sub
@@ -4496,7 +4320,7 @@ Partial Class Bancos_IE
End If
Try
- If (IDPoliza > 0 AndAlso (UsuarioActual.Empresa.UsaAC)) Then
+ If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso (IDPoliza > 0 AndAlso (UsuarioActual.Empresa.UsaAC)) Then
If ObjAC Is Nothing Then
ErrorCancelar = True
@@ -4592,8 +4416,9 @@ Partial Class Bancos_IE
Dim TipoMovimiento As Integer = 1
Dim CveTipoTransaccionCancelacion As Integer = DdlTipoTransaccionCancelacion.SelectedValue.ToEntero
+ Dim CveCuentaDevolucion As Integer = DdlDevolucionCuenta.SelectedValue.ToEntero
- If ChkGeneraCancelacion.Checked AndAlso GeneraCancelacionEnCero Then
+ If ChkGeneraCancelacion.Checked Then
GeneraCancelacionEnCero = False
TipoMovimiento = 2
@@ -4608,7 +4433,7 @@ Partial Class Bancos_IE
If Not GeneraCancelacionEnCero Then
'CANCELA IE MES ANTERIOR
CvePrePolizaCancelacion = Banc.CancelarBancos_IE(UsuarioActual.CveUsuario, CveIE, True, IdPolizaNueva, FolioPolizaNueva, TxtFechaCancelacion.Text.ToDate, TipoMovimiento:=TipoMovimiento,
- CveTipoTransaccionCancelacion:=CveTipoTransaccionCancelacion)
+ CveTipoTransaccionCancelacion:=CveTipoTransaccionCancelacion, CveCuentaDevolucion:=CveCuentaDevolucion)
If CvePrePolizaCancelacion <= 0 Then
ErrorCancelar = True
MensajeError = "Error al cancelar IE MES ANTERIOR"
@@ -4624,7 +4449,7 @@ Partial Class Bancos_IE
Else
'CANCELA IE MES ACTUAL
CvePrePolizaCancelacion = Banc.CancelarBancos_IE(UsuarioActual.CveUsuario, CveIE, False, IdPolizaNueva, FolioPolizaNueva, TxtFechaCancelacion.Text.ToDate,
- CveTipoTransaccionCancelacion:=CveTipoTransaccionCancelacion)
+ CveTipoTransaccionCancelacion:=CveTipoTransaccionCancelacion, CveCuentaDevolucion:=CveCuentaDevolucion)
If CvePrePolizaCancelacion <= 0 Then
ErrorCancelar = True
MensajeError = "Error al cancelar IE MES ACTUAL"
@@ -4681,7 +4506,7 @@ Partial Class Bancos_IE
Dim ObjCancelacion As New Timbrado
If EstatusSATCancelado(FolioFiscalCancelar, UsuarioActual.Empresa.RFC, RFCReceptorCancelar) Then
- If Banc.UpdateComplementoPago(CveComplementoPagoCancelar, "-1", -1, UsuarioActual.CveEmpresa, 2, CvePACCancelacion, FechaCancelacion:=Date.Now, SelloCancelacion:="") Then
+ If Banc.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, Date.Now, "", 1) Then
CargaComplementosPago()
RegistraScript("$('#ModalCancelarComplemetno').modal('hide');")
ErrorCancelarComplemento = False
@@ -4692,7 +4517,7 @@ Partial Class Bancos_IE
Dim respCancelacion = ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscalCancelar, 0, RFCReceptorCancelar, UsuarioActual.Empresa.RFC, CvePACCancelacion, CveSATMotivoCancelacion:=CveSATMotivoCancelacion)
If respCancelacion.Verificado Then
- If Banc.UpdateComplementoPago(CveComplementoPagoCancelar, "-1", -1, UsuarioActual.CveEmpresa, 2, CvePACCancelacion, FechaCancelacion:=ObjCancelacion.CancelacionFecha, SelloCancelacion:=ObjCancelacion.CancelacionAcuse, CveSATMotivoCancelacion:=CveSATMotivoCancelacion) Then
+ If Banc.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, FechaCancelacion:=ObjCancelacion.CancelacionFecha, SelloCancelacion:=ObjCancelacion.CancelacionAcuse, CveSATMotivoCancelacion:=CveSATMotivoCancelacion) Then
CargaComplementosPago()
RegistraScript("$('#ModalCancelarComplemetno').modal('hide');")
ErrorCancelarComplemento = False
@@ -5937,7 +5762,7 @@ Partial Class Bancos_IE
End If
If ObjBancos.DtResultados.FiltraParametros(" Estatus IN (1,3) ").Rows.Count = 1 And Tipo.ToUpper = "CARGO" And CveCliente > 0 And CveEstatusIE <> 2 Then
- DVmotivoCancelacion.Visible = True
+ DivCancelarComplemento.Visible = True
End If
@@ -6758,7 +6583,7 @@ Partial Class Bancos_IE
If EstatusSATCancelado(FolioFiscalCancelar, UsuarioActual.Empresa.RFC, RFCReceptorCancelar) Then
- If ObjBanco.UpdateComplementoPago(CveComplementoPagoCancelar, "-1", -1, UsuarioActual.CveEmpresa, 2, CvePACCancelacion, FechaCancelacion:=Date.Now, SelloCancelacion:="") Then
+ If ObjBanco.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, Date.Now, "", 1) Then
CargaComplementosPago()
Alert("El complemento se cancelo correctamente.")
End If
@@ -6768,18 +6593,18 @@ Partial Class Bancos_IE
Dim resp = ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscalCancelar, 0, RFCReceptorCancelar, UsuarioActual.Empresa.RFC, CvePACCancelacion, CveSATMotivoCancelacion:=CveSATMotivoCancelacion)
If resp.Verificado Then
- If ObjBanco.UpdateComplementoPago(CveComplementoPagoCancelar, "-1", -1, UsuarioActual.CveEmpresa, 2, CvePACCancelacion, FechaCancelacion:=ObjCancelacion.CancelacionFecha, SelloCancelacion:=ObjCancelacion.CancelacionAcuse, CveSATMotivoCancelacion:=CveSATMotivoCancelacion) Then
+ If ObjBanco.UpdateComplementoPagoCancelado(CveComplementoPagoCancelar, 2, CvePACCancelacion, UsuarioActual.CveEmpresa, FechaCancelacion:=ObjCancelacion.CancelacionFecha, SelloCancelacion:=ObjCancelacion.CancelacionAcuse, CveSATMotivoCancelacion:=CveSATMotivoCancelacion) Then
- Alert("El complemento se cancelo correctamente.")
+ ' Alert("El complemento se cancelo correctamente.")
+ 'End If
+ Else
+ Alert("Se presento un error al cancelar el complemento.", TipoMensaje.MsgError)
End If
- Else
- Alert("Se presento un error al cancelar el complemento.", TipoMensaje.MsgError)
+
End If
- End If
-
- ObjBanco.Dispose()
- CargaComplementosPago()
+ ObjBanco.Dispose()
+ CargaComplementosPago()
End Sub
@@ -6791,7 +6616,7 @@ Partial Class Bancos_IE
Exit Sub
End If
- TxtFechaCancelacion.Text = TxtFechaCancelarComplemento.Text
+ 'TxtFechaCancelacion.Text = TxtFechaCancelarComplemento.Text
CancelarIE(True)
End Sub
@@ -6822,10 +6647,10 @@ Partial Class Bancos_IE
CvePACCancelacion = DTComplementos.Rows(0)("CvePAC").ToString.ToEntero
RegistraScript("$('#ModalCancelarComplemetno').modal('show');")
- DivFechaCancelación.Visible = True
+ 'DivFechaCancelación.Visible = True
CargaComplementosPago()
- UpModalCancelarComplemetno.Update()
+ 'UpModalCancelarComplemetno.Update()
Else
If DTComplementos.Rows.Count = 0 Then
@@ -6969,17 +6794,21 @@ Partial Class Bancos_IE
TipoMovto = "Egs"
End If
- GlobalDTTipoTransacciones.FiltraParametros("Tipo='Egs'")
-
DdlTipoTransaccionCancelacion.Items.Clear()
DdlTipoTransaccionCancelacion.DataSource = GlobalDTTipoTransacciones.FiltraParametros($"Tipo ='{TipoMovto}' AND Estatus = 1")
DdlTipoTransaccionCancelacion.DataBind()
DdlTipoTransaccionCancelacion.Items.Insert(0, New ListItem("Seleccione una", "-1"))
+ DdlDevolucionCuenta.DataSource = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa)
+ DdlDevolucionCuenta.DataBind()
+ DdlDevolucionCuenta.Items.Insert(0, New ListItem("-", "-1"))
+
If ChkGeneraCancelacion.Checked Then
DVTipoTransacciónCancelar.Visible = True
+ DVTipoTransacciónCancelar2.Visible = True
Else
DVTipoTransacciónCancelar.Visible = False
+ DVTipoTransacciónCancelar2.Visible = False
End If
UpEliminarCotizacion.Update()
diff --git a/Bancos/PopIECompras.aspx.vb b/Bancos/PopIECompras.aspx.vb
index e0111b63a..7e0bae4ee 100644
--- a/Bancos/PopIECompras.aspx.vb
+++ b/Bancos/PopIECompras.aspx.vb
@@ -2581,7 +2581,7 @@ Partial Class Bancos_PopIECompras
TimpocambioGeneral = TCImpuestos
Dim tipoCambioCompraValuacion As Decimal = If(PagoMismoMes, tipoCambioCompra, TCUltimaFluctuacion)
'' si tiene funcionalidad de flucturación con ivas, tomar tipocambioCompra
- If tipoCambioPago < tipoCambioCompra AndAlso CveMonedaCompra = 2 Then
+ If tipoCambioPago < tipoCambioCompra AndAlso CveMonedaCompra = 2 Or (CveMonedaCompra = 2 AndAlso UsuarioActual.CveEmpresa = 119 AndAlso PagoMismoMes = False AndAlso tipoCambioPago < TCUltimaFluctuacion) Then
ImporteMovimiento = ((MovimientoPagar.Total * PorcentajePago) * tipoCambioPago) - ((MovimientoPagar.Total * PorcentajePago) * tipoCambioCompraValuacion) 'Añadimos la diferencia de ganancia en la venta
ImporteMovimiento -= ((MovimientoPagar.IVA * PorcentajePago) * TCImpuestos) - ((MovimientoPagar.IVA * PorcentajePago) * tipoCambioCompra) 'Añadimos la diferencia de ganancia en el IVA
ImporteMovimiento += ((MovimientoPagar.RetIVA * PorcentajePago) * TCImpuestos) - ((MovimientoPagar.RetIVA * PorcentajePago) * tipoCambioCompra) 'Añadimos la diferencia de ganancia en el RetIVA
@@ -2604,9 +2604,10 @@ Partial Class Bancos_PopIECompras
If CveMoneda <> 1 OrElse CveMonedaCompra <> 1 Then
IdCtaContable = UsuarioActual.Empresa.IdCuentaPerdidaCambiaria
Dim TCImpuestos As Decimal = If(FuncionalidadFluctuacionImpuestos, tipoCambioPago, tipoCambioCompra)
- Dim tipoCambioCompraValuacion As Decimal = If(PagoMismoMes, tipoCambioCompra, TCUltimaFluctuacion)
- '' si tiene funcionalidad de flucturación con ivas, tomar tipocambioCompra
- If tipoCambioPago > tipoCambioCompra AndAlso CveMonedaCompra = 2 Then
+ Dim tipoCambioCompraValuacion As Decimal = If(PagoMismoMes, tipoCambioCompra, TCUltimaFluctuacion)
+ '' si tiene funcionalidad de flucturación con ivas, tomar tipocambioCompra
+
+ If tipoCambioPago > tipoCambioCompra AndAlso CveMonedaCompra = 2 Or (CveMonedaCompra = 2 AndAlso UsuarioActual.CveEmpresa = 119 AndAlso PagoMismoMes = False AndAlso tipoCambioPago > TCUltimaFluctuacion) Then
ImporteMovimiento = ((MovimientoPagar.Total * PorcentajePago) * tipoCambioCompraValuacion) - ((MovimientoPagar.Total * PorcentajePago) * tipoCambioPago) 'Añadimos la diferencia de perdida en la venta
ImporteMovimiento -= ((MovimientoPagar.IVA * PorcentajePago) * tipoCambioCompra) - ((MovimientoPagar.IVA * PorcentajePago) * TCImpuestos) 'Añadimos la diferencia de ganancia en el IVA
ImporteMovimiento += ((MovimientoPagar.RetIVA * PorcentajePago) * tipoCambioCompra) - ((MovimientoPagar.RetIVA * PorcentajePago) * TCImpuestos) 'Añadimos la diferencia de ganancia en el RetIVA
diff --git a/Bancos/RepComplementoPago.aspx.vb b/Bancos/RepComplementoPago.aspx.vb
index 3e3926d25..e085cea94 100644
--- a/Bancos/RepComplementoPago.aspx.vb
+++ b/Bancos/RepComplementoPago.aspx.vb
@@ -98,7 +98,7 @@ Partial Class Bancos_RepComplementoPago
End If
End If
- CargaDatos()
+ 'CargaDatos()
End If
End Sub
@@ -171,7 +171,7 @@ Partial Class Bancos_RepComplementoPago
MandaCorreo(Banco.ComplementoSerieFolio, gvr.DataKey("CobranzaCorreo"))
End If
Else
- Str.AppendFormat("No se genero complemento del Folio {0} por el siguiente motivo: {1}", gvr.DataKey("Folio"), Banco.Mensaje)
+ Str.AppendFormat("No se genero complemento del Folio {0} por el siguiente motivo: {1}
", gvr.DataKey("Folio"), Banco.Mensaje)
Banco.RollBack()
End If
Catch ex As Exception
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index 879a4635a..d024dcd69 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -2205,12 +2205,13 @@ Partial Class Compras_Compras
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
End If
- If DIOTCveTipoOperacion = 3 Then ' 85 - Otros
+ If DIOTCveTipoOperacion.Contiene(0, 3) Then ' 85 - Otros
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Fletes P.F.", "2"))
End If
+
ElseIf RFCProv.Length = 12 Then
If DIOTCveTipoOperacion = 1 Then '03 - Prestación de Servicios Profesionales
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
@@ -2220,12 +2221,14 @@ Partial Class Compras_Compras
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
End If
- If DIOTCveTipoOperacion = 3 Then ' 85 - Otros
+ If DIOTCveTipoOperacion.Contiene(0, 3) Then ' 85 - Otros
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Honorarios/Serv. Prof.", "1"))
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
DdlRetIVAConcepto.Items.Insert(0, New ListItem("Fletes P.F.", "2"))
End If
+
+
End If
End If
@@ -2251,12 +2254,14 @@ Partial Class Compras_Compras
DdlRetISRConcepto.Items.Insert(1, New ListItem("Resico", "3"))
End If
- If DIOTCveTipoOperacion = 3 Then ' 85 - Otros
+ If DIOTCveTipoOperacion.Contiene(0, 3) Then ' 85 - Otros
DdlRetISRConcepto.Items.Insert(0, New ListItem("Honorarios", "1"))
DdlRetISRConcepto.Items.Insert(1, New ListItem("Arrendamiento", "2"))
DdlRetISRConcepto.Items.Insert(1, New ListItem("Resico", "3"))
End If
+
+
End If
UpPS.Update()
End Sub
diff --git a/Compras/PopUpVerFactura.aspx.vb b/Compras/PopUpVerFactura.aspx.vb
index 2486ed8af..f54ffac71 100644
--- a/Compras/PopUpVerFactura.aspx.vb
+++ b/Compras/PopUpVerFactura.aspx.vb
@@ -2047,6 +2047,7 @@ Partial Class PopUpVerFactura
For Each parametro As ReportParameter In params
retorno.Parametros.Add(New ReportParameter($"SRP_{parametro.Name}", parametro.Values.Item(0)))
Next
+ retorno.Parametros.Add(New ReportParameter($"TieneCartaPorte", "True"))
Else
retorno.Parametros.AddRange(params)
End If
@@ -2690,7 +2691,7 @@ Partial Class PopUpVerFactura
Dim CveTimbreCartaPorteVenta As Integer = -1
Dim CartaPorte As Modelos.MSubReportData = Nothing
- If Vta.TipoDocto = "Ing" Then
+ If UsuarioActual.CveEmpresa = 13 AndAlso Vta.TipoDocto = "Ing" Then
Using ObjGral As New ClsGenerales
If ObjGral.GetGralTimbre(-1, "Ing", MinFecha, MaxFecha, 0, UsuarioActual.CveEmpresa, -1, CveVenta:=CveVenta) AndAlso ObjGral.DtResultados.Rows.Count > 0 Then
Dim RowCP As DataRow = ObjGral.DtResultados.Rows(0)
@@ -2713,6 +2714,9 @@ Partial Class PopUpVerFactura
'CartaPorte.DataSources.Add(New ReportDataSource() With {.Name = "DataSet1", .Value = dt})
CartaPorte = PreParaImpresionCartaPorte(CveTimbreCartaPorteVenta, AplicaSubReporte:=True)
+ Else
+ CartaPorte = New Modelos.MSubReportData()
+ CartaPorte.Parametros.Add(New ReportParameter($"TieneCartaPorte", "False"))
End If
End If
diff --git a/Compras/Proveedores.aspx.vb b/Compras/Proveedores.aspx.vb
index 226553921..7c5ce2a0e 100644
--- a/Compras/Proveedores.aspx.vb
+++ b/Compras/Proveedores.aspx.vb
@@ -750,9 +750,11 @@ Partial Class Compras_Proveedores
TxtNombreComercial.Text = HttpUtility.HtmlDecode(ValorXml(node, "Nombre"))
ChkEstado.Checked = True
- If Version = "4.0" Then
+ Dim CodigoRegimenFiscal As String = ValorXml(node, "RegimenFiscal")
+
+ If Version = "4.0" Or CodigoRegimenFiscal.Trim.Length > 0 Then
+
- Dim CodigoRegimenFiscal As String = ValorXml(node, "RegimenFiscal")
Dim CveRegimenFiscal As Integer = GlobalDTRegimenesFiscales(-1).FiltroPrimeroValor("CveRegimenFiscal", $" CodigoRegimenFiscal = '{ CodigoRegimenFiscal }'").ToEntero
DdlRegimenFiscal.SelectedValueExist(CveRegimenFiscal)
diff --git a/Empresas/119/Formatos/NotaDevolucion.rdlc b/Empresas/119/Formatos/NotaDevolucion.rdlc
index c1f00da0f..b970f1584 100644
--- a/Empresas/119/Formatos/NotaDevolucion.rdlc
+++ b/Empresas/119/Formatos/NotaDevolucion.rdlc
@@ -1440,11 +1440,42 @@
Left
+
+
+
+ Reg.fiscal:
+
+
+
+
+
+
+
+ =Parameters!RegimenFiscalCodigo.Value
+
+
+
+
+
Textbox2
0.00137in
4.38498cm
- 1.62208in
+ 1.80958in
3.6362in
10
+
+
+ =Parameters!CFDIVersion.Value
+ 4
+
+
+
@@ -689,7 +702,7 @@
- 0.44125cm
+ 0.54021cm
@@ -721,8 +734,12 @@
2pt
+ 4
+
+
+
@@ -924,6 +941,2793 @@
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ Impuesto
+
+
+
+
+
+
+ Textbox108
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Tipo
+
+
+
+
+
+
+ Textbox109
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Base
+
+
+
+
+
+
+ Textbox110
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Tipo Factor
+
+
+
+
+
+
+ Textbox111
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Tasa/Cuota
+
+
+
+
+
+
+ Textbox112
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Importe
+
+
+
+
+
+
+ Textbox113
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox114
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox115
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox116
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox117
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ OR Fields!Tra002ImporteDR.Value > 0
+ OR Fields!Tra003ImporteDR.Value > 0
+ OR Fields!Ret001ImporteDR.Value > 0
+ OR Fields!Ret002ImporteDR.Value > 0
+ OR Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ ISR
+
+
+
+
+
+
+ Textbox61
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Traslado
+
+
+
+
+
+
+ Textbox204
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra001TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra001TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra001ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox4
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox13
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox17
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox18
+
+ = IIF(
+ Fields!Tra001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ IVA
+
+
+
+
+
+
+ Textbox61
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Traslado
+
+
+
+
+
+
+ Textbox204
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra002TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra002TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra002ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox67
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox68
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox69
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox70
+
+ = IIF(
+ Fields!Tra002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ IEPS
+
+
+
+
+
+
+ Textbox61
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Traslado
+
+
+
+
+
+
+ Textbox204
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra003TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra003TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Tra003ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox51
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox55
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox56
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox58
+
+ = IIF(
+ Fields!Tra003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ ISR
+
+
+
+
+
+
+ Textbox61
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Retención
+
+
+
+
+
+
+ Textbox207
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret001TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret001TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret001ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox75
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox76
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox77
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox78
+
+ = IIF(
+ Fields!Ret001ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ IVA
+
+
+
+
+
+
+ Textbox61
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Retención
+
+
+
+
+
+
+ Textbox207
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret002TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret002TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret002ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox85
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox86
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox87
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox88
+
+ = IIF(
+ Fields!Ret002ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.07938cm
+
+
+
+
+ true
+ true
+
+
+
+
+ IEPS
+
+
+
+
+
+
+ Textbox59
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Retención
+
+
+
+
+
+
+ Textbox207
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!ImpPagado.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret003TipoFactorDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret003TasaOCuotaDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Ret003ImporteDR.Value
+
+
+
+
+
+
+ ImpPagado
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox95
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox96
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox97
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+ Textbox98
+
+ = IIF(
+ Fields!Ret003ImporteDR.Value > 0
+ ,False,True)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
@@ -935,6 +3739,9 @@
+
+
+
@@ -944,13 +3751,23 @@
+
+
+
+
+
+
+
+
+
+
DataSet2
4.62704cm
- 0.93125cm
- 20.53564cm
+ 1.66521cm
+ 20.53139cm
1
+
+
+
+ = IIF( Parameters!RegimenFiscalCodigo.Value <> "ND-", "<b>Reg. Fiscal:</b> " & Parameters!RegimenFiscalCodigo.Value,"")
+
+
+
+
+
Textbox2
0.03528cm
@@ -2060,7 +4892,7 @@
Textbox45
- 7.94284cm
+ 8.92709cm
3.30199cm
16.51971cm
5
@@ -2089,7 +4921,7 @@
Textbox5
- 7.67825cm
+ 8.6625cm
0.0882cm
20.53564cm
6
@@ -2108,7 +4940,7 @@
External
=Parameters!QR.Value
FitProportional
- 3.1271in
+ 3.5146in
6.51771in
1.3in
1.5in
@@ -2134,7 +4966,7 @@
Textbox5
- 11.36179cm
+ 12.34604cm
0.11466cm
20.5314cm
8
@@ -2150,7 +4982,7 @@
- 11.47645cm
+ 13.54549cm