- mejora en manejo de TXTTC
This commit is contained in:
@@ -570,19 +570,21 @@
|
||||
var chkPesosBancos = $get("ChkPagarPesos");
|
||||
var chkDolaresBancos = $get("ChkPagarDolares");
|
||||
|
||||
|
||||
if (t.checked) {
|
||||
txt.value = FormatoNumero(importe, 2);
|
||||
} else {
|
||||
txt.value = "";
|
||||
}
|
||||
|
||||
if (chkPesosBancos) {
|
||||
if (chkPesosBancos && chkPesosBancos.checked) {
|
||||
CambiaPesosDolares()
|
||||
} else if (chkDolaresBancos) {
|
||||
} else if (chkDolaresBancos && chkDolaresBancos.checked) {
|
||||
CambiaDolaresPesos()
|
||||
}
|
||||
|
||||
else {
|
||||
var Suma = SumaValores();
|
||||
$get('TxtImporte').value = FormatoNumero(Suma, 2);
|
||||
}
|
||||
}
|
||||
|
||||
function SumaValores(aplicaTC) {
|
||||
@@ -637,6 +639,8 @@
|
||||
|
||||
function FnCambia(chk, txt, saldo, op, text, Tipo) {
|
||||
debugger;
|
||||
var chkPesosBancos = $get("ChkPagarPesos");
|
||||
var chkDolaresBancos = $get("ChkPagarDolares");
|
||||
if (op == 1) {
|
||||
if (txt.value != '') {
|
||||
chk.checked = true;
|
||||
@@ -659,8 +663,12 @@
|
||||
$get('TxtTotal').value = FormatoNumero(Suma + (ToDouble($get('TxtOtrosImportes').value * -1)), 2);
|
||||
}
|
||||
|
||||
CambiaPesosDolares()
|
||||
CambiaDolaresPesos()
|
||||
if (chkPesosBancos && chkPesosBancos.checked) {
|
||||
CambiaPesosDolares()
|
||||
} else if (chkDolaresBancos && chkDolaresBancos.checked) {
|
||||
CambiaDolaresPesos()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1143,7 +1143,6 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
RegistraScript("CambiaPesosDolares();")
|
||||
Else
|
||||
CveMoneda = dr("CveMoneda").ToString.ToEntero
|
||||
|
||||
If CveMoneda = 1 Then
|
||||
RegistraScript("CambiaDolaresPesos();")
|
||||
End If
|
||||
@@ -1357,6 +1356,7 @@ Partial Class Bancos_ProveedoresAbonar
|
||||
Protected Sub ChkPagarPesos_CheckedChanged(sender As Object, e As EventArgs)
|
||||
If ChkPagarPesos.Checked Then
|
||||
DivTC.Visible = True
|
||||
DivTCDolares.Visible = False
|
||||
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
||||
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
||||
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
||||
|
||||
Reference in New Issue
Block a user