- considerar abono negativo como cargo o viceversa
This commit is contained in:
@@ -236,10 +236,20 @@ Partial Class Bancos_ConciliacionesBancariasaspx
|
||||
Seleccionados += 1
|
||||
Fecha = Gvr.DataKey("FechaDocumento").ToDate
|
||||
If Gvr.DataKey("Tipo") = "Cargo" Then
|
||||
If Gvr.DataKey("Importe").ToDouble < 0 Then ' cuando es negativo suma para el abono
|
||||
SumaSIGAbono += Math.Abs(Gvr.DataKey("Importe").ToDouble)
|
||||
Else
|
||||
SumaSIGCargo += Gvr.DataKey("Importe").ToDouble
|
||||
End If
|
||||
|
||||
ElseIf Gvr.DataKey("Tipo") = "Abono" Then
|
||||
If Gvr.DataKey("Importe").ToDouble < 0 Then ' cuando es negativo suma para el cargo
|
||||
SumaSIGCargo += Math.Abs(Gvr.DataKey("Importe").ToDouble)
|
||||
Else
|
||||
SumaSIGAbono += Gvr.DataKey("Importe").ToDouble
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
If Seleccionados > 1 Then
|
||||
|
||||
Reference in New Issue
Block a user