--FIX ajuste por saldo al aplicar RNC por concepto

This commit is contained in:
JPerez
2025-06-09 15:12:13 -07:00
parent 2ea5dc7efd
commit 2da0b5b009
2 changed files with 7 additions and 2 deletions

View File

@@ -36698,10 +36698,15 @@ Partial Class Ventas
Dim ImporteIVA As Decimal = (TotalCalculableImpuestos * PorcentajeIVA).RoundSQL(2)
Dim TotalRNCDetalle As Decimal = (TotalCalculableImpuestos + ImporteIVA)
Dim Saldo As Decimal = GvRow.DataKey("Saldo").ToDecimal()
'AJUSTAR SALDO SI EL TOTAL ES MAYOR
If TotalRNCDetalle > Saldo Then
TotalRNCDetalle = Saldo
End If
TotalRNC += TotalRNCDetalle
End If
End If