Merge branch 'master' of http://rpimienta@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -228,9 +228,9 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function AddPrePolizasNegativa(CvePrePoliza As Integer, CveUsuario As Integer, Concepto As String, CveEmpresa As Integer, Fecha As Date) As Boolean
|
Public Function AddPrePolizasNegativa(CvePrePoliza As Integer, CveUsuario As Integer, Concepto As String, CveEmpresa As Integer, Fecha As Date) As Integer
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Conta_PrePolizasNegativaAdd")
|
DataAdapter("PA_Conta_PrePolizasNegativaAdd")
|
||||||
|
|
||||||
@@ -240,11 +240,12 @@ Public Class ClsContabilidad
|
|||||||
.Add("@Concepto", SqlDbType.VarChar).Value = Concepto
|
.Add("@Concepto", SqlDbType.VarChar).Value = Concepto
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
.Add("@Fecha", SqlDbType.Date).Value = Fecha
|
.Add("@Fecha", SqlDbType.Date).Value = Fecha
|
||||||
|
.Add("@CvePrePolizaNueva", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = SqlAdapter.SelectCommand.Parameters("@CvePrePolizaNueva").Value.ToString.ToEntero
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al Guardar", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al Guardar", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
@@ -689,7 +689,7 @@ Partial Class Bancos_IE
|
|||||||
LnkAjustarMovimiento.Visible = True
|
LnkAjustarMovimiento.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not VerificaComplementos(True) Then
|
If UsuarioActual.CveEmpresa = 72 OrElse Not VerificaComplementos(True) Then 'No entrara para la empresa 72 porque tarda mucho el load
|
||||||
|
|
||||||
LnkCancelarComplemento.Visible = False
|
LnkCancelarComplemento.Visible = False
|
||||||
LnkCancelarComplementoImporte.Visible = False
|
LnkCancelarComplementoImporte.Visible = False
|
||||||
|
|||||||
@@ -390,23 +390,37 @@ Partial Class PopUpAuxiliar
|
|||||||
Dim TieneError As Boolean = False
|
Dim TieneError As Boolean = False
|
||||||
ObjContabilidad.IniciaTransacSQL()
|
ObjContabilidad.IniciaTransacSQL()
|
||||||
|
|
||||||
If ObjContabilidad.AddPrePolizasNegativa(CvePrePoliza, UsuarioActual.CveUsuario, TxtConceptoCancelacion.Text, UsuarioActual.CveEmpresa, TxtFechaCancelacion.Text.ToDate) Then
|
Dim CvePrePolizaNueva As Integer = ObjContabilidad.AddPrePolizasNegativa(CvePrePoliza, UsuarioActual.CveUsuario, TxtConceptoCancelacion.Text, UsuarioActual.CveEmpresa, TxtFechaCancelacion.Text.ToDate)
|
||||||
Alert("Se agrego polzia negativa correctamente.")
|
|
||||||
Else
|
If Not CvePrePolizaNueva > 0 Then
|
||||||
|
|
||||||
|
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If TieneError Then
|
If Not TieneError Then
|
||||||
ObjContabilidad.RollBack()
|
|
||||||
Else
|
|
||||||
ObjContabilidad.Commit()
|
ObjContabilidad.Commit()
|
||||||
|
Dim Str As New StringBuilder
|
||||||
|
Str.Append("Se agrego la póliza de cancelación correctamente.<br/>")
|
||||||
RegistraScript(" $('#DivCancelar').modal('hide'); ")
|
RegistraScript(" $('#DivCancelar').modal('hide'); ")
|
||||||
CargaDatos()
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" Then
|
||||||
|
If ObjContabilidad.ContabilizarPrePoliza(CvePrePolizaNueva, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
|
Str.AppendFormat("<a href='/Contabilidad/RegPoliza.aspx?IdPoliza={0}' target='_blank' class='Texto'>Ver Poliza</a>", ObjContabilidad.ContaIdPoliza)
|
||||||
|
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Alert(Str.ToString)
|
||||||
|
Else
|
||||||
|
ObjContabilidad.RollBack()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ObjContabilidad.Dispose()
|
|
||||||
|
|
||||||
|
|
||||||
|
ObjContabilidad.Dispose()
|
||||||
|
CargaDatos()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1419,7 +1419,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td><b>T.C.:</b></td>
|
<td><b>T.C.:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtTipoCambio" onkeyup="ConvertirDllsPesos();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
<asp:TextBox ID="TxtTipoCambio" onkeyup="ConvertirDllsPesos();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static" Readonly ="true"></asp:TextBox>
|
||||||
<asp:CompareValidator ID="CVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
<asp:CompareValidator ID="CVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOTipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="CVTipoCambio" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCOTipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="CVTipoCambio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
<asp:Label runat="server" ID="LblTCValuacion" ToolTip="Última Valuación" Text="" Visible="false"></asp:Label>
|
<asp:Label runat="server" ID="LblTCValuacion" ToolTip="Última Valuación" Text="" Visible="false"></asp:Label>
|
||||||
|
|||||||
@@ -20758,13 +20758,19 @@ Partial Class Ventas
|
|||||||
CalculaTotalesVenta(True)
|
CalculaTotalesVenta(True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'condicióon, en la que se verifica que el importe total de aplicación de la nota de crédito sea igual al del total de la nota de crédito, ej. saldo de la factura 1000.01 y la nota de crédito se generó po 1000.00
|
'condicióon, en la que se verifica que el importe total de aplicación de la nota de crédito sea igual al del total de la nota de crédito, ej. saldo de la factura 1000.01 y la nota de crédito se generó po 1000.00
|
||||||
If Not AplicaNCMasiva Then
|
If Not AplicaNCMasiva Then
|
||||||
Dim TT As Decimal = TxtNCImporte.Text.ToDecimal
|
Dim TT As Decimal = TxtNCImporte.Text.ToDecimal
|
||||||
If TT > TxtTotal.Text.ToDecimal Then TT = TxtTotal.Text.ToDecimal
|
If TT > TxtTotal.Text.ToDecimal Then TT = TxtTotal.Text.ToDecimal
|
||||||
CargaNCDT(CveVenta, TT)
|
CargaNCDT(CveVenta, TT)
|
||||||
End If
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
'verifica el tipo de cambio que se actualice
|
||||||
|
If DdlMoneda.SelectedValue <> "1" Then
|
||||||
|
TxtTipoCambio.Text = GlobalTipoCambio(Now).ToString
|
||||||
|
End If
|
||||||
|
LblTCValuacion.Visible = False
|
||||||
UpPS.Update()
|
UpPS.Update()
|
||||||
|
|
||||||
LBNotaCredito.Visible = False
|
LBNotaCredito.Visible = False
|
||||||
|
|||||||
Reference in New Issue
Block a user