--FIX modificacion de precios
This commit is contained in:
@@ -9227,14 +9227,19 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If RecalcularPromociones Then
|
If RecalcularPromociones Then
|
||||||
ObjDescuento = CalcularDescuentos(CvePSNuevo, Cantidad, PU)
|
ObjDescuento = CalcularDescuentos(CvePSNuevo, Cantidad, PU)
|
||||||
Dim RegenerarPU As Boolean = False
|
|
||||||
|
|
||||||
If ObjDescuento.EsPUModificado Then
|
If ObjDescuento.EsPUModificado Then
|
||||||
|
'SI ES IMPORTE ASIGNADO ES MAYOR, RESPETAR EL ORIGINAL
|
||||||
|
If GvPS.Rows(e.RowIndex).FCTextBox("TxtPrecio").Enabled AndAlso (GvPS.Rows(e.RowIndex).FCTextBox("TxtPrecio").Text.ToDecimal() > ObjDescuento.PU) Then
|
||||||
|
PU = GvPS.Rows(e.RowIndex).FCTextBox("TxtPrecio").Text.ToDecimal()
|
||||||
|
Else
|
||||||
PU = ObjDescuento.PU
|
PU = ObjDescuento.PU
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
'SI ESTA HABILITADO LA OPCION DE DESCUENTO, SE AGREGO UN DESCUENTO MANUAL Y NO TIENE PROMOCION
|
'SI ESTA HABILITADO LA OPCION DE DESCUENTO, SE AGREGO UN DESCUENTO MANUAL Y NO TIENE PROMOCION
|
||||||
If GvPS.Rows(e.RowIndex).FCTextBox("TxtDescuento").Enabled AndAlso CvePSAnterior = CvePSNuevo Then 'AndAlso (ObjDescuento.CvePromocionDetalle <= 0 AndAlso ObjDescuento.ImporteDescuento <= 0) Then
|
If GvPS.Rows(e.RowIndex).FCTextBox("TxtDescuento").Enabled AndAlso CvePSAnterior = CvePSNuevo Then 'AndAlso (ObjDescuento.CvePromocionDetalle <= 0 AndAlso ObjDescuento.ImporteDescuento <= 0) Then
|
||||||
|
|||||||
Reference in New Issue
Block a user