Compras Prorrateo Plantilla correcion
This commit is contained in:
@@ -8071,70 +8071,61 @@ Partial Class Compras_Compras
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
Alert(Msg.ToString, TipoMensaje.MsgInformacion, MsgAccionAceptar)
|
|
||||||
Else
|
|
||||||
ObjCompras.RollBack()
|
|
||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
|
||||||
' Alert("Ocurrio un error al guardar la compra. Por favor intente nuevamente.", TipoMensaje.MsgError)
|
|
||||||
End If
|
|
||||||
|
|
||||||
=======
|
|
||||||
If CveEvaluacionProveedor > 0 Then
|
If CveEvaluacionProveedor > 0 Then
|
||||||
Msg.Append("<br/><br/>El proveedor tiene evaluaciones pendientes<br/>")
|
Msg.Append("<br/><br/>El proveedor tiene evaluaciones pendientes<br/>")
|
||||||
Msg.Append("¿Desea realizar una evaluación al proveedor?")
|
Msg.Append("¿Desea realizar una evaluación al proveedor?")
|
||||||
Msg.AppendFormat($"</br><a class=""Texto"" target='_blank' href=""/Compras/EvaluacionProveedor.aspx?CveEvaluacionProveedor={CveEvaluacionProveedor}"">Evaluar Proveedor.</a>")
|
Msg.AppendFormat($"</br><a class=""Texto"" target='_blank' href=""/Compras/EvaluacionProveedor.aspx?CveEvaluacionProveedor={CveEvaluacionProveedor}"">Evaluar Proveedor.</a>")
|
||||||
End If
|
End If
|
||||||
>>>>>>> Compras Plantilla Prorrateo, Cat Secciones Tipo Operación, EMD Ajustes formatos almacén
|
|
||||||
BtnGuardar.Enabled = False
|
|
||||||
UpFacturar.Update()
|
|
||||||
|
|
||||||
Alert(Msg.ToString, TipoMensaje.MsgInformacion, MsgAccionAceptar)
|
BtnGuardar.Enabled = False
|
||||||
|
UpFacturar.Update()
|
||||||
|
|
||||||
|
Alert(Msg.ToString, TipoMensaje.MsgInformacion, MsgAccionAceptar)
|
||||||
Else
|
Else
|
||||||
ObjCompras.RollBack()
|
ObjCompras.RollBack()
|
||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
||||||
Alert("Ocurrio un error al guardar la compra. Por favor intente nuevamente.", TipoMensaje.MsgError)
|
Alert("Ocurrio un error al guardar la compra. Por favor intente nuevamente.", TipoMensaje.MsgError)
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Else
|
||||||
|
ObjCompras.RollBack()
|
||||||
|
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
||||||
|
Alert("Ocurrio un error al guardar la compra. Por favor intente nuevamente..", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
Alert("Debe seleccionar un Funcionario/Empleado o Caja Chica para Reembolsos. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
||||||
ObjCompras.RollBack()
|
ObjCompras.RollBack()
|
||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
||||||
Alert("Ocurrio un error al guardar la compra. Por favor intente nuevamente..", TipoMensaje.MsgError)
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("Debe seleccionar un Funcionario/Empleado o Caja Chica para Reembolsos. Por favor vuelva a intentar.", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al agregar el movimiento bancario.<br />Revise sus datos de pago y cualquier detalle comuníquese a Soporte Técnico", TipoMensaje.MsgAdvertencia)
|
||||||
ObjCompras.RollBack()
|
ObjCompras.RollBack()
|
||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
|
||||||
Alert("Ocurrió un error al agregar el movimiento bancario.<br />Revise sus datos de pago y cualquier detalle comuníquese a Soporte Técnico", TipoMensaje.MsgAdvertencia)
|
|
||||||
ObjCompras.RollBack()
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
Catch ex As Exception
|
||||||
|
ObjCompras.RollBack()
|
||||||
Catch ex As Exception
|
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
||||||
ObjCompras.RollBack()
|
Alert("Ocurrió un error al registrar la compra. Cualquier detalle comuníquese a Soporte Técnico", TipoMensaje.MsgError)
|
||||||
If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack()
|
GuardaLog($"Ocurrió un error al registrar la compra. Cualquier detalle comuníquese a Soporte Técnico : {ex}")
|
||||||
Alert("Ocurrió un error al registrar la compra. Cualquier detalle comuníquese a Soporte Técnico", TipoMensaje.MsgError)
|
ViewState("CveCompra") = -1
|
||||||
GuardaLog($"Ocurrió un error al registrar la compra. Cualquier detalle comuníquese a Soporte Técnico : {ex}")
|
End Try
|
||||||
ViewState("CveCompra") = -1
|
ObjAcar.Dispose()
|
||||||
End Try
|
ObjCompras.Dispose()
|
||||||
ObjAcar.Dispose()
|
ObjConta.Dispose()
|
||||||
ObjCompras.Dispose()
|
ObjIE.Dispose()
|
||||||
ObjConta.Dispose()
|
ObjInventario.Dispose()
|
||||||
ObjIE.Dispose()
|
ObjAF.Dispose()
|
||||||
ObjInventario.Dispose()
|
ObjOC.Dispose()
|
||||||
ObjAF.Dispose()
|
ObjProveedores.Dispose()
|
||||||
ObjOC.Dispose()
|
ObjCGame.Dispose()
|
||||||
ObjProveedores.Dispose()
|
ObjProductosServicios.Dispose()
|
||||||
ObjCGame.Dispose()
|
|
||||||
ObjProductosServicios.Dispose()
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user