--GRUPO DIAZ, Asignar la forma de pago segun el importe mayor de los pagaos agregados
This commit is contained in:
@@ -23892,9 +23892,21 @@ Partial Class Ventas
|
||||
UpPS.Update()
|
||||
End If
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(382) = "1" AndAlso DtPagos IsNot Nothing AndAlso DtPagos.Rows.Count > 0 Then
|
||||
Dim ImporteMaximo As Decimal = DtPagos.MAX("Importe").ToDecimal()
|
||||
Dim RowPagoMaximo As DataRow = DtPagos.FiltroPrimero($"Importe >= {ImporteMaximo}")
|
||||
If RowPagoMaximo IsNot Nothing Then
|
||||
Dim CveTipoTransaccion As Integer = RowPagoMaximo("CveTipoMovimiento").ToString().ToEntero()
|
||||
If CveTipoTransaccion > 0 Then
|
||||
Dim CveFormaPago = GlobalDTTipoTransacciones.FiltroPrimeroValor("CveFormaPago", RowFilter:=$"CveTipoTransaccion = {CveTipoTransaccion} AND Estatus = 1")
|
||||
DdlFormaPago33.SelectedValueExist(CveFormaPago)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
CargaGridContado()
|
||||
UpContado.Update()
|
||||
|
||||
UPCondicionesPago.Update()
|
||||
End Sub
|
||||
Private Sub RBLPago_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RBLPago.SelectedIndexChanged
|
||||
LimpiaEscondeContado()
|
||||
|
||||
Reference in New Issue
Block a user