-- las devoluciones debe poder dejar libres renglones, cuando hay lotes entregados previamente
This commit is contained in:
@@ -2080,18 +2080,18 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
If Not Cantidad > 0 Then
|
If Not Cantidad > 0 Then
|
||||||
Alert("No se detecto ningun movimiento por hacer. Por favor verifique e intente nuevamente.", TipoMensaje.MsgAdvertencia)
|
Alert("No se detecto ningun movimiento por hacer. Por favor verifique e intente nuevamente.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'PROCESO , si tiene proceso "176" no lo valida
|
'PROCESO , si tiene proceso "176" no lo valida
|
||||||
If Not UsuarioActual.TienePermisoProceso(176) Then
|
If Not UsuarioActual.TienePermisoProceso(176) Then
|
||||||
For Each Gvr As GridViewRow In GvDatos.Rows
|
If Not TipoDocto.Contiene("Dev") Then 'para devoluciones debe de aceptar parcialidades
|
||||||
If Gvr.DataKey("CantidadF").ToDecimal <> Gvr.FCTextBox("TbCantidadF").Text.ToDecimal Then
|
For Each Gvr As GridViewRow In GvDatos.Rows
|
||||||
Alert("En la factura no se han especificado todos los productos a entregar, favor de especificarlos para poder dar salida.", TipoMensaje.MsgAdvertencia)
|
If Gvr.DataKey("CantidadF").ToDecimal <> Gvr.FCTextBox("TbCantidadF").Text.ToDecimal Then
|
||||||
Exit Sub
|
Alert("En la factura no se han especificado todos los productos a entregar, favor de especificarlos para poder dar salida.", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
Exit Sub
|
||||||
Next
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If EsDevolucionVenta = 1 Or TipoDocto.Contiene({"Ped"}) Then
|
If EsDevolucionVenta = 1 Or TipoDocto.Contiene({"Ped"}) Then
|
||||||
|
|||||||
Reference in New Issue
Block a user