funcionalidad 128,. corrección
This commit is contained in:
@@ -1355,7 +1355,7 @@ Partial Class Compras_Compras
|
|||||||
GvInv.Visible = True
|
GvInv.Visible = True
|
||||||
CargaProveedor(-1, RFC)
|
CargaProveedor(-1, RFC)
|
||||||
|
|
||||||
If Not DdlTipoComprobante.SelectedValue = "NC" Then
|
If Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") Then
|
||||||
If UsuarioActual.Empresa.Funcionalidad(128) = "1" And Not UsuarioActual.TienePermisoProceso(213) Then
|
If UsuarioActual.Empresa.Funcionalidad(128) = "1" And Not UsuarioActual.TienePermisoProceso(213) Then
|
||||||
If TmpDT.MAX("CvePS").ToEntero > 0 Then
|
If TmpDT.MAX("CvePS").ToEntero > 0 Then
|
||||||
BtnGuardar.Enabled = False
|
BtnGuardar.Enabled = False
|
||||||
@@ -4060,13 +4060,15 @@ Partial Class Compras_Compras
|
|||||||
' DtNoEncontrados.Dispose()
|
' DtNoEncontrados.Dispose()
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
'Verifica funcionalidad 702 "Require orden de compra para factura de compra"
|
'Verifica funcionalidad 128 "Require orden de compra para factura de compra"
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(128) <> "" Then
|
If Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") Then
|
||||||
If Not EstaAsociadoACajaChica And Not EstaAsociadoAPersonal Then
|
If UsuarioActual.Empresa.Funcionalidad(128) = "1" And Not UsuarioActual.TienePermisoProceso(213) Then
|
||||||
If Not CompraEstaVinculadaOC Then
|
If Not EstaAsociadoACajaChica And Not EstaAsociadoAPersonal Then
|
||||||
Alert("Debe de vincular una orden de compra para registrar la factura")
|
If Not CompraEstaVinculadaOC Then
|
||||||
Exit Sub
|
Alert("Debe de vincular una orden de compra para registrar la factura")
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user