--FIX validacion bdh

This commit is contained in:
2025-02-25 09:21:25 -07:00
parent 7f237bec64
commit d5fb7bb02f
2 changed files with 19 additions and 7 deletions

View File

@@ -10590,10 +10590,15 @@ Partial Class Ventas
Dim PU As Decimal = Row("PU").ToString().ToDecimal()
Dim Descuento As Decimal = Row("Descuento").ToString().ToDecimal()
If Not ValidaPorcentajeMarcas(CvePS, Cantidad, PU, Descuento) Then
ValidoDescuentos = False
Exit For
Dim EsGarantia As Boolean = Me.EsGarantia OrElse Row("Obs").ToString().Contains("Descuento por garantía")
If Not EsGarantia Then
If Not ValidaPorcentajeMarcas(CvePS, Cantidad, PU, Descuento) Then
ValidoDescuentos = False
Exit For
End If
End If
Next
End If