cambios de extensiones .SUM de double a decimal
This commit is contained in:
@@ -563,7 +563,7 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
|
||||
End Function
|
||||
Protected Function CreaDTDetalleRNC() As DataTable
|
||||
Dim TmpDT = New DataTable
|
||||
Dim TmpDT As New DataTable
|
||||
TmpDT.Columns.Add("CveVenta", GetType(Integer))
|
||||
TmpDT.Columns.Add("Consec", GetType(Integer))
|
||||
TmpDT.Columns.Add("Cantidad", GetType(Decimal))
|
||||
@@ -748,12 +748,12 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
End If
|
||||
Next
|
||||
|
||||
Dim TotalImporte As Decimal = ObjRemisionNC.DtDetalle.SUM("TotalImporte").ToDecimal()
|
||||
Dim ImporteIVA As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteIVA").ToDecimal()
|
||||
Dim ImporteRetIVA As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteRetIVA").ToDecimal()
|
||||
Dim ImporteRetISR As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteRetISR").ToDecimal()
|
||||
Dim ImporteIEPS As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteIEPS").ToDecimal()
|
||||
Dim Descuento As Decimal = ObjRemisionNC.DtDetalle.SUM("Descuento").ToDecimal()
|
||||
Dim TotalImporte As Decimal = ObjRemisionNC.DtDetalle.SUM("TotalImporte")
|
||||
Dim ImporteIVA As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteIVA")
|
||||
Dim ImporteRetIVA As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteRetIVA")
|
||||
Dim ImporteRetISR As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteRetISR")
|
||||
Dim ImporteIEPS As Decimal = ObjRemisionNC.DtDetalle.SUM("ImporteIEPS")
|
||||
Dim Descuento As Decimal = ObjRemisionNC.DtDetalle.SUM("Descuento")
|
||||
Dim Amortizacion As Decimal = 0
|
||||
|
||||
Dim Total As Decimal = (TotalImporte + ImporteIVA + ImporteIEPS) - (ImporteRetIVA + ImporteRetISR + Descuento + Amortizacion)
|
||||
@@ -822,7 +822,7 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
CreaRemisionNC(CveCliente, CveSubProyecto)
|
||||
|
||||
If ObjRemisionNC IsNot Nothing Then
|
||||
Dim Resp = ObjRemisionNC.EmitirFactura(False)
|
||||
Dim Resp As Modelos.Factura.MMensajeFactura = ObjRemisionNC.EmitirFactura(False)
|
||||
|
||||
If Resp.Mensajes.Count > 0 AndAlso Resp.CveVenta > 0 Then
|
||||
Dim Msg As New StringBuilder
|
||||
@@ -843,7 +843,7 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
ElseIf Resp.Mensajes.Count <= 0 AndAlso Resp.CveVenta <= 0 Then
|
||||
Alert("Ocurrió un error al guardar", TipoMensaje.MsgError)
|
||||
ElseIf Resp.Mensajes.Count >= 0 AndAlso Resp.CveVenta <= 0 Then
|
||||
For Each Mensaje In Resp.Mensajes
|
||||
For Each Mensaje As String In Resp.Mensajes
|
||||
Alert(Mensaje, If(Resp.TieneError, TipoMensaje.MsgError, TipoMensaje.MsgInformacion), If(Resp.TieneError, "", Resp.LigaPV), ShowCloseButton:=False)
|
||||
Next
|
||||
End If
|
||||
@@ -863,7 +863,7 @@ Partial Class Inventarios_RecepcionDevolucion
|
||||
If DtMovimientos IsNot Nothing Then
|
||||
Dim ConsecEliminar As Integer = GvRow.DataKey("Consec").ToEntero()
|
||||
If ConsecEliminar > 0 Then
|
||||
Dim RowEliminar = DtMovimientos.Select($"Consec={ConsecEliminar}")
|
||||
Dim RowEliminar As DataRow() = DtMovimientos.Select($"Consec={ConsecEliminar}")
|
||||
If RowEliminar IsNot Nothing AndAlso RowEliminar.Length > 0 AndAlso RowEliminar.Length = 1 Then
|
||||
RowEliminar(0).Delete()
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user