-- desbloqueo antes de eliminar movto
This commit is contained in:
@@ -1371,6 +1371,12 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Not TieneError Then
|
||||||
|
If Not Conta.UpdatePrePolizasDetalleBloquear(CvePrePoliza, False) Then
|
||||||
|
TieneError = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If Inv.MovimientoRemove(CveMovimiento, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
If Inv.MovimientoRemove(CveMovimiento, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
|
||||||
If HdnIdPoliza.Value.ToEntero > 0 Then
|
If HdnIdPoliza.Value.ToEntero > 0 Then
|
||||||
If Not ObjConta.RemovePoliza(HdnIdPoliza.Value.ToEntero) Then
|
If Not ObjConta.RemovePoliza(HdnIdPoliza.Value.ToEntero) Then
|
||||||
@@ -1381,12 +1387,6 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not TieneError Then
|
|
||||||
If Not Conta.UpdatePrePolizasDetalleBloquear(CvePrePoliza, False) Then
|
|
||||||
TieneError = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
If ObjConta IsNot Nothing Then ObjConta.Commit()
|
If ObjConta IsNot Nothing Then ObjConta.Commit()
|
||||||
Inv.Commit()
|
Inv.Commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user