diff --git a/App_Code/ClsContabilidad.vb b/App_Code/ClsContabilidad.vb index 81d5750b4..31a25e690 100644 --- a/App_Code/ClsContabilidad.vb +++ b/App_Code/ClsContabilidad.vb @@ -933,6 +933,22 @@ Public Class ClsContabilidad Return Retorno End Function + Public Function UpdatePrePolizasDetalleBloquear(CvePrePoliza As Integer, Bloquear As Boolean) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_Conta_PrePolizasDetalleBloquearUpdate") + With SqlAdapter.SelectCommand.Parameters + .Add("@CvePrePoliza", SqlDbType.Int).Value = CvePrePoliza + .Add("@Bloquear", SqlDbType.Bit).Value = Bloquear + End With + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error al bloquear o desbloquear las prepolizas detalle.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End Try + Return Retorno + End Function + Public Function ContabilizarPrePoliza(CvePrePoliza As Integer, CveUsuario As Integer, Empresa As Empresa, Optional Fecha As Date = MinFecha, Optional Concepto As String = "", @@ -981,6 +997,8 @@ Public Class ClsContabilidad End If + + Dim tIdPoliza As Integer Dim CveTipoPoliza, FolioFijo As Integer Dim Cargos As Decimal @@ -1260,6 +1278,12 @@ Public Class ClsContabilidad End If End If + If Not OcurrioError Then + If Not UpdatePrePolizasDetalleBloquear(CvePrePoliza, True) Then + OcurrioError = True + End If + End If + 'If Empresa.Funcionalidad(522).ToString = "1" And Empresa.UsaContabilidad Then ' Dim CodigoPersona As String = "" @@ -5638,12 +5662,13 @@ Public Class ClsContabilidad #End Region #Region "VALIDACION POLIZA DESCUADRADA" - Public Function ValidacionPrePolizaCuadre(CvePrePoliza As Integer, Opcion As Integer) As Boolean + Public Function ValidacionPrePolizaCuadre(CvePrePoliza As Integer, Opcion As Integer, Optional CveVenta As Integer = -1) As Boolean Dim Retorno = False DataAdapter("PA_Conta_PrePoliza_Validacion") With SqlAdapter.SelectCommand.Parameters .Add("@CvePrePoliza", SqlDbType.Int).Value = CvePrePoliza + .Add("@CveVenta", SqlDbType.Int).Value = CveVenta .Add("@Opcion", SqlDbType.Int).Value = Opcion .Add("@Valor", SqlDbType.Int).Direction = ParameterDirection.Output .Add("@MsgSalida", SqlDbType.VarChar, 100).Direction = ParameterDirection.Output diff --git a/Compras/Compras.aspx b/Compras/Compras.aspx index 86c684edd..85648f022 100644 --- a/Compras/Compras.aspx +++ b/Compras/Compras.aspx @@ -2,7 +2,7 @@ - + @@ -88,14 +88,14 @@
  • Fletes
  • -
  • - - - Complementos Pago - - +
  • + + + Complementos Pago + + + -
  • Actualizar Tipo Cambio @@ -292,7 +292,7 @@
    ¿Es No Deducible?
    - +
    @@ -611,7 +611,8 @@ % IVA  Total 
    - ¿No Deducible? 
    + ¿No Deducible?  + Comandos @@ -704,11 +705,11 @@ <%-- 9 --%> - + <%-- 10 --%> - + - + @@ -1436,11 +1437,11 @@
    + @@ -1792,18 +1794,21 @@ - -
    -
    - -
    -
    -
    -
    -
    - -
    -
    + + +
    +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    @@ -3211,10 +3216,11 @@ - + ScrollAD " + data-height="320" Style="text-align: left;" GridLines="None" DataKeyNames="CvePS"> @@ -4330,7 +4336,7 @@ - +
    @@ -4340,7 +4346,7 @@ -
    +
    @@ -4541,10 +4547,10 @@ - - - + + + @@ -4773,9 +4779,9 @@