cambios de extensiones .SUM de double a decimal
This commit is contained in:
@@ -1457,8 +1457,8 @@ Partial Class Compras_eFacturas
|
||||
Dim FechaF As String = txtFechaF.Text
|
||||
If txtFechaI.Text = "" Then FechaI = "-1"
|
||||
If txtFechaF.Text = "" Then FechaF = "-1"
|
||||
Dim Folio = If(TxtFolio.Text.Trim.Length > 0, String.Format("%{0}%", TxtFolio.Text.Trim.ToUpper), "-1")
|
||||
Dim Proveedor = If(TxtProveedor.Text.Trim.Length > 0, String.Format("%{0}%", TxtProveedor.Text.Trim.ToUpper.Replace(" ", "%")), "-1")
|
||||
Dim Folio As String = If(TxtFolio.Text.Trim.Length > 0, String.Format("%{0}%", TxtFolio.Text.Trim.ToUpper), "-1")
|
||||
Dim Proveedor As String = If(TxtProveedor.Text.Trim.Length > 0, String.Format("%{0}%", TxtProveedor.Text.Trim.ToUpper.Replace(" ", "%")), "-1")
|
||||
Dim dt As DataTable = Nothing
|
||||
|
||||
If ObjDatos.GetFacturas(-1, Folio, txtFechaI.Text.Trim.ToDate, txtFechaF.Text.Trim.ToDate, "-1", Proveedor, DdlValidado.SelectedValue.ToEntero, DdlResponsable.SelectedValue.ToEntero, DdlClasificacionProv.SelectedValue.ToEntero, DdlCveTipoProveedor.SelectedValue.ToEntero, DdlTipoComprobante.SelectedValue.ToString, UsuarioActual.CveEmpresa) Then
|
||||
@@ -1663,7 +1663,7 @@ Partial Class Compras_eFacturas
|
||||
swTiempo.AppendFormat("BorrarInicio: ({0}) {1} ", sw.ElapsedMilliseconds - swmili, sw.ElapsedMilliseconds)
|
||||
swmili = sw.ElapsedMilliseconds
|
||||
sw.Start()
|
||||
For Each filePath In ListXML
|
||||
For Each filePath As String In ListXML
|
||||
Try
|
||||
File.Delete(filePath)
|
||||
Catch ex As Exception
|
||||
@@ -2468,7 +2468,7 @@ Partial Class Compras_eFacturas
|
||||
parametros.Add(New ReportParameter("EmiNombre", EmiNombre))
|
||||
parametros.Add(New ReportParameter("EmiRFC", EmiRFC))
|
||||
parametros.Add(New ReportParameter("NoSerieCertificado", NoSerieCertificado))
|
||||
parametros.Add(New ReportParameter("TotalLetra", Total.ToDouble().Texto2Letras(CveMoneda:=If(Moneda = "MXN", 1, If(Moneda = "USD", 2, 3)))))
|
||||
parametros.Add(New ReportParameter("TotalLetra", Total.ToDecimal.Texto2Letras(CveMoneda:=If(Moneda = "MXN", 1, If(Moneda = "USD", 2, 3)))))
|
||||
parametros.Add(New ReportParameter("Empresa", UsuarioActual.Empresa.Empresa))
|
||||
|
||||
'params.Add(New ReportParameter("DTConceptos", DTConceptos))
|
||||
@@ -3800,15 +3800,12 @@ Partial Class Compras_eFacturas
|
||||
' Exit Sub
|
||||
'End If
|
||||
|
||||
Dim TieneError = False
|
||||
Dim TieneError As Boolean = False
|
||||
Dim ObjCompra As New ClsCompras
|
||||
ObjCompra.IniciaTransacSQL()
|
||||
|
||||
|
||||
For Each Gv As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
||||
|
||||
|
||||
|
||||
If Gv.DataKey("CveCompra").ToEntero > 0 And Gv.DataKey("CveIE").ToEntero > 0 Then
|
||||
|
||||
If Not ObjCompra.AddComplementoPago(Gv.DataKey("CveIE").ToEntero, Gv.DataKey("CveCompra").ToEntero, Gv.DataKey("ImpPagado").ToDecimal, Gv.DataKey("CvePrePolizaDetalle").ToEntero, CveFacturaPago) > 0 Then
|
||||
@@ -3850,22 +3847,17 @@ Partial Class Compras_eFacturas
|
||||
Dim objEventos As New ClsOIEventos(ObjCompra.IniciaTransacSQL)
|
||||
|
||||
If ViculacionConPUE Then
|
||||
|
||||
|
||||
For Each CveCompraVinculada In ListaComprasPUE
|
||||
For Each CveCompraVinculada As Integer In ListaComprasPUE
|
||||
objEventos.AddEventoBitacora($"Complemento { ComplementoConPUE } vinculado manualmente (Compra PUE) ", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=CveCompraVinculada)
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
|
||||
For Each Gv As GridViewRow In GVPDocumentosRelacionadosPagos.Rows
|
||||
If Boolean.Parse(Gv.DataKey("Manual").ToString) Then
|
||||
objEventos.AddEventoBitacora($"Complemento { LblSerieFolioPago.Text} vinculado manualmente a compra {Gv.DataKey("SerieFolio").ToString} y Pago { Gv.DataKey("FolioPago").ToString }", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=Gv.DataKey("CveCompra").ToString.ToEntero)
|
||||
End If
|
||||
Next
|
||||
|
||||
|
||||
'If HdnCveIE.Value.ToEntero > 0 Then
|
||||
|
||||
' For Each dRow As DataRow In DT_ComprasSinIE.Rows
|
||||
@@ -3991,12 +3983,9 @@ Partial Class Compras_eFacturas
|
||||
Dim Vinculados As Integer = 0
|
||||
Dim TodoVinculado As Boolean = False
|
||||
|
||||
Dim Diferencia As Boolean = If(Math.Abs(DTGVPagosVinculacion.SUM("ImpPagado") - DTGVPagosVinculacion.SUM("ImportePago")).ToDecimal > 0.1D, True, False)
|
||||
Dim Diferencia As Boolean = If(Math.Abs(DTGVPagosVinculacion.SUM("ImpPagado") - DTGVPagosVinculacion.SUM("ImportePago")) > 0.1D, True, False)
|
||||
Dim VinculacionManual As Boolean = If(DTGVPagosVinculacion.FiltraParametros("Manual = 1").Rows.Count > 0, True, False)
|
||||
|
||||
|
||||
|
||||
|
||||
Dim PermisoVinculacionDiferencia As Boolean = UsuarioActual.TienePermisoProceso(286)
|
||||
Dim PermisoVinculacionManual As Boolean = UsuarioActual.TienePermisoProceso(286)
|
||||
|
||||
@@ -4111,10 +4100,8 @@ Partial Class Compras_eFacturas
|
||||
LiteralVincular.Text = "-"
|
||||
End If
|
||||
e.Row.Cells(6).Controls.Add(LiteralVincular)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Else
|
||||
e.Row.Cells(4).Text = "<i class='fa fa-check-circle' aria-hidden='true'></i>"
|
||||
e.Row.ToolTip = "Factura recibida sin registrar"
|
||||
@@ -4129,11 +4116,8 @@ Partial Class Compras_eFacturas
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
|
||||
Public Sub ImprimirPDFXML(NombreArchivo As String, rutaxml As String)
|
||||
Dim objxml As XmlSatCFDI = XmlSatCFDI.readXML(rutaxml)
|
||||
|
||||
@@ -6851,7 +6835,7 @@ Public Class Compra2
|
||||
End If
|
||||
|
||||
Dim Msg As String = ""
|
||||
Dim SubtotalTemp As Decimal = TmpDT.SUMD("Total") + Math.Round(TmpDT.SUM("Descuento") + Math.Round(TmpDT.SUM("Amortizacion")), 2).ToDecimal
|
||||
Dim SubtotalTemp As Decimal = TmpDT.SUMD("Total") + Math.Round(TmpDT.SUM("Descuento") + Math.Round(TmpDT.SUM("Amortizacion")), 2)
|
||||
Dim DescuentosTemp As Decimal = TmpDT.SUMD("Descuento")
|
||||
Dim Subtotal2Temp As Decimal = TmpDT.SUMD("Total")
|
||||
Dim IVATemp As Decimal = TmpDT.SUMD("IVA")
|
||||
|
||||
Reference in New Issue
Block a user