validacion que sean iguales descuento via nomina y cantidad seleccionada
This commit is contained in:
@@ -345,12 +345,26 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
||||
return;
|
||||
}
|
||||
|
||||
if (OpcionDevolucion.SelectedValue.ToEntero() == 3 && TipoDevolucion.SelectedValue.ToString().ToEntero() == 2 && TxtValor.Text == "")
|
||||
if (OpcionDevolucion.SelectedValue.ToEntero() == 3 && TipoDevolucion.SelectedValue.ToString().ToEntero() == 2)
|
||||
{
|
||||
Alert("Debe ingresar un importe", TipoMensaje.MsgAdvertencia);
|
||||
return;
|
||||
if (TxtValor.Text == "")
|
||||
{
|
||||
Alert("Debe ingresar un importe", TipoMensaje.MsgAdvertencia);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
int valor = (TxtValor.Text.ToEntero() * TxtVecesAplicar.Text.ToEntero()).ToEntero();
|
||||
int total = hdnTotal.Text.ToEntero();
|
||||
if (valor <> total)
|
||||
{
|
||||
Alert("La cantidad total debe ser igual a lo seleccionado");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
ClsBancos ObjIE = new ClsBancos();
|
||||
ClsContabilidad ObjMov = new ClsContabilidad(ObjIE.IniciaTransacSQL());
|
||||
ClsCompras ObjComp = new ClsCompras(ObjIE.IniciaTransacSQL());
|
||||
|
||||
Reference in New Issue
Block a user