PagoElectronico validacion Banco asisgnado a cuenta deposito, repIva crystal
This commit is contained in:
@@ -311,7 +311,7 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
|
||||
Private Property OriConceptoCIE As String
|
||||
Get
|
||||
If ViewState("OriReferenciaCIE") Is Nothing Then
|
||||
If ViewState("OriConceptoCIE") Is Nothing Then
|
||||
Return ""
|
||||
Else
|
||||
Return ViewState("OriConceptoCIE").ToString
|
||||
@@ -875,7 +875,7 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
ComprobanteIE = $"{CveIE}.{Comprobante}"
|
||||
|
||||
|
||||
If DdlCuentaDeposito.SelectedValue.ToEntero > 0 Then
|
||||
If DdlCuentaDeposito.SelectedValue.ToEntero > 0 And DdlTipoTransaccion.SelectedValue = "17" Then
|
||||
|
||||
If TxtReferenciaCIE.Text <> OriReferenciaCIE Or TxtConceptoCIE.Text <> OriConceptoCIE Then
|
||||
|
||||
@@ -1853,7 +1853,7 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
'CveCuenta = UsuarioActual.Empresa.CveCuentaGananciaCambiaria
|
||||
'Dim TCImpuestos As Decimal = If(FuncionalidadFluctuacionImpuestos, TipoCambioPago, tipoCambioCompraValuacion)
|
||||
'TipoCambioGeneral = TCImpuestos
|
||||
''' si tiene funcionalidad de flucturación con ivas, tomar tipocambioCompra
|
||||
'''' si tiene funcionalidad de flucturación con ivas, tomar tipocambioCompra
|
||||
'If TipoCambioPago < tipoCambioCompra AndAlso gvr.DataKey("CveMoneda").ToEntero = 2 Then
|
||||
' ImporteMovimiento = (gvr.FCTextBox("TxtAbonar").Text.ToDecimal * TipoCambioPago) - (gvr.FCTextBox("TxtAbonar").Text.ToDecimal * tipoCambioCompra) 'Añadimos la diferencia de ganancia en la venta
|
||||
' ImporteMovimiento -= (IVA * TCImpuestos) - (IVA * tipoCambioCompra) 'Añadimos la diferencia de ganancia en el IVA
|
||||
@@ -2660,28 +2660,50 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
'cuando es transferencia bancaria, debe de solicitar a que cuenta se va a depositar
|
||||
CargaCuentasDepositos()
|
||||
End Sub
|
||||
|
||||
Protected Sub DdlCuentaDeposito_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||
|
||||
Dim Dep As New ClsGenerales
|
||||
|
||||
If Dep.GetCuentasDepositos(CveProveedor:=CveProveedor, CveCuentaDeposito:=DdlCuentaDeposito.SelectedValue.ToEntero) AndAlso Dep.DtResultados.Rows.Count = 1 Then
|
||||
If Dep.DtResultados.Rows(0)("TieneCIE").ToString.ToEntero = 1 Then
|
||||
TrReferenciaCIE.Visible = True
|
||||
|
||||
TxtReferenciaCIE.Text = Dep.DtResultados.Rows(0)("Referencia").ToString
|
||||
TxtConceptoCIE.Text = Dep.DtResultados.Rows(0)("ConceptoCIE").ToString
|
||||
If Dep.DtResultados.Rows.Count > 0 Then
|
||||
|
||||
OriReferenciaCIE = Dep.DtResultados.Rows(0)("Referencia").ToString
|
||||
OriConceptoCIE = Dep.DtResultados.Rows(0)("ConceptoCIE").ToString
|
||||
If Dep.DtResultados.Rows(0)("TieneCIE").ToString.ToEntero = 1 Then
|
||||
|
||||
TrReferenciaCIE.Visible = True
|
||||
|
||||
TxtReferenciaCIE.Text = Dep.DtResultados.Rows(0)("Referencia").ToString
|
||||
TxtConceptoCIE.Text = Dep.DtResultados.Rows(0)("ConceptoCIE").ToString
|
||||
|
||||
OriReferenciaCIE = Dep.DtResultados.Rows(0)("Referencia").ToString
|
||||
OriConceptoCIE = Dep.DtResultados.Rows(0)("ConceptoCIE").ToString
|
||||
|
||||
Else
|
||||
TrReferenciaCIE.Visible = False
|
||||
End If
|
||||
|
||||
|
||||
If Boolean.Parse(Dep.DtResultados.Rows(0)("EstatusPagoElectronicoGrupos").ToString) = True AndAlso Dep.DtResultados.Rows(0)("CveSATBanco").ToString.ToEntero <= 0 Then
|
||||
|
||||
Alert("Es necesario establecer el banco de la cuenta deposito", TipoMensaje.MsgAdvertencia)
|
||||
BtnIEGuardar.Enabled = False
|
||||
|
||||
Else
|
||||
BtnIEGuardar.Enabled = True
|
||||
End If
|
||||
|
||||
Else
|
||||
TrReferenciaCIE.Visible = False
|
||||
End If
|
||||
|
||||
Else
|
||||
TrReferenciaCIE.Visible = False
|
||||
End If
|
||||
|
||||
Dep.Dispose()
|
||||
UpCuentaDeposito.Update()
|
||||
|
||||
UpGuardar.Update()
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
Reference in New Issue
Block a user