This commit is contained in:
2024-04-18 19:45:01 -07:00

View File

@@ -7214,11 +7214,15 @@ Partial Class Ventas
If Opcion = "Cot" Then If Opcion = "Cot" Then
DdlTipoComprobante.SelectedValueExist("Cot") DdlTipoComprobante.SelectedValueExist("Cot")
Else Else
'SI ES REFACTURACION NO DEBE CAMBIAR EL TIPÖ DOCTO
If Not (Request("NuevaFactura") IsNot Nothing AndAlso Request("NuevaFactura").ToString() = "1") Then
If Not String.IsNullOrEmpty(UsuarioActual.CveTipoDocumento) Then If Not String.IsNullOrEmpty(UsuarioActual.CveTipoDocumento) Then
DdlTipoComprobante.SelectedValueExist(UsuarioActual.CveTipoDocumento) DdlTipoComprobante.SelectedValueExist(UsuarioActual.CveTipoDocumento)
DdlTipoComprobante_SelectedIndexChanged(DdlTipoComprobante, Nothing) DdlTipoComprobante_SelectedIndexChanged(DdlTipoComprobante, Nothing)
End If End If
End If End If
End If
End If End If
End If End If
@@ -32174,8 +32178,12 @@ Partial Class Ventas
HdnIVAOriginal.Value = TxtIVA.Text HdnIVAOriginal.Value = TxtIVA.Text
End If End If
If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
RBLPago.SelectedValuesIfExist(dtSeleccionadas.FiltroPrimeroValor("CondicionesPago"))
Else
RBLPago.Items(0).Enabled = True 'sino está activo lo activamos porque las remisiones pueden ser a crédito RBLPago.Items(0).Enabled = True 'sino está activo lo activamos porque las remisiones pueden ser a crédito
RBLPago.SelectedValue = "1" RBLPago.SelectedValue = "1"
End If
RemisionesLista.Clear() RemisionesLista.Clear()