Cambios GlobalDTSubPoryecto
Cambio GlobalDTUsuario
This commit is contained in:
@@ -41,6 +41,12 @@ Partial Class Bancos_DepositosCaja
|
||||
'Dim StrEncriptPrueba As String = Encripta($"OP=DC&CveIE={2784391}&CuentaCaja={"TestCuantaCaja"}&CuentaDepo={"Test cuenta"}")
|
||||
'HplImprimirPDF.NavigateUrl = $"/Compras/PopUpVerFactura.aspx?P={StrEncriptPrueba}"
|
||||
|
||||
If UsuarioActual.CveEmpresa = 189 Then
|
||||
If DdlTipoPago.Items.FindByValue("-1") IsNot Nothing Then
|
||||
DdlTipoPago.Items.Remove(DdlTipoPago.Items.FindByValue("-1"))
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -327,7 +333,7 @@ Partial Class Bancos_DepositosCaja
|
||||
|
||||
If CveSubProyecto <= 0 Then
|
||||
'se saca de la cuenta de la caja chica
|
||||
CveSubProyecto = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveCuenta:=DdlCajaChica.SelectedValue.ToEntero, Estatus:=-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveSubProyecto").ToEntero
|
||||
CveSubProyecto = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveCuenta:=DdlCajaChica.SelectedValue.ToEntero, Estatus:=-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveSubProyecto").ToEntero()
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
@@ -246,11 +246,19 @@
|
||||
<br />
|
||||
<asp:CheckBox ID="ChkAplicaViatico" CssClass="md-checksd" Text="Aplica Viaticos" runat="server" Visible="false" align="Right" />
|
||||
<asp:CheckBox ID="ChkAnticipoPuntual" CssClass="md-checksd" ClientIDMode="Static" runat="server" Text="Anticipo Puntual" Visible="false"></asp:CheckBox>
|
||||
|
||||
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:Panel>
|
||||
<div class="row" id="DivCveAutorizacion" runat="server" visible="false">
|
||||
<label class="col-md-2 control-label">
|
||||
<asp:Label runat="server" Text="Clave de autorización:"></asp:Label>
|
||||
</label>
|
||||
<label class="col-md-10 control-label">
|
||||
<asp:Label ID="LblCveAutorizacion" runat="server" ></asp:Label>
|
||||
</label>
|
||||
</div>
|
||||
<div id="DivOtrosIngresosEgresos" runat="server" visible="false" class="row">
|
||||
|
||||
<label class="col-md-2 control-label ">Otros:</label>
|
||||
|
||||
@@ -815,6 +815,11 @@ Partial Class Bancos_IE
|
||||
NumComplementos = ObjIE.DtResultados(0)("NumComplementos").ToString.ToEntero
|
||||
Dim CveIEEstadoCuenta As Integer = ObjIE.DtResultados(0)("CveIEEstadoCuenta").ToString.ToEntero
|
||||
|
||||
If Not String.IsNullOrEmpty(ObjIE.DtResultados(0)("CveAutorizacion").ToString) Then
|
||||
DivCveAutorizacion.Visible = True
|
||||
LblCveAutorizacion.Text = ObjIE.DtResultados(0)("CveAutorizacion").ToString()
|
||||
End If
|
||||
|
||||
If UsuarioActual.TienePermisoProceso(99) Then
|
||||
'BtnActualizar.Visible = True
|
||||
TxtFechaDocumento.Enabled = True
|
||||
|
||||
@@ -446,10 +446,10 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- 11 --%>
|
||||
<asp:TemplateField Visible="false">
|
||||
<asp:TemplateField Visible="false" ItemStyle-Width="60px">
|
||||
<HeaderTemplate>% Desc.</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtDescuento" Width="40px" runat="server" Style="text-align: right;" MaxLength="6"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtDescuento" Width="60px" runat="server" Style="text-align: right;" MaxLength="15"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtDescuento" ValidChars="1234567890+." FilterType="Custom" />
|
||||
|
||||
</ItemTemplate>
|
||||
@@ -721,63 +721,36 @@
|
||||
//}
|
||||
}
|
||||
|
||||
function calculaDescuentoEscalonado(saldo, TxtDescuento, TxtAbonar, chk,Text,Tipo) {
|
||||
|
||||
let idTxtDescuento = TxtDescuento.id
|
||||
let idTxtAbonar = TxtAbonar.id
|
||||
|
||||
let descuentoValue = $("#" + idTxtDescuento).val().trim();
|
||||
let descuentoParts = descuentoValue.split('+');
|
||||
let abonarConDescuento = 0.0;
|
||||
|
||||
|
||||
if (descuentoParts.length === 1) {
|
||||
|
||||
|
||||
if (isNaN(parseFloat(descuentoParts[0])) || descuentoParts[0] == "0") {
|
||||
$("#" + idTxtAbonar).val(saldo.toFixed(2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
|
||||
} else {
|
||||
let descuento = saldo * (parseFloat(descuentoParts[0]) / 100);
|
||||
abonarConDescuento = saldo - descuento;
|
||||
$("#" + idTxtAbonar).val(FormatoNumero(abonarConDescuento.toFixed(2),2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
}
|
||||
|
||||
} else if (descuentoParts.length === 2) {
|
||||
|
||||
if (isNaN(parseFloat(descuentoParts[0]))) {
|
||||
$("#" + idTxtAbonar).val("");
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
return;
|
||||
}
|
||||
|
||||
let descuento1 = saldo * (parseFloat(descuentoParts[0]) / 100);
|
||||
|
||||
if (isNaN(parseFloat(descuentoParts[1]))) {
|
||||
|
||||
let descuento = saldo * (parseFloat(descuentoParts[0]) / 100);
|
||||
abonarConDescuento = saldo - descuento;
|
||||
$("#" + idTxtAbonar).val(FormatoNumero(abonarConDescuento.toFixed(2), 2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
return;
|
||||
}
|
||||
|
||||
let descuento = saldo * (parseFloat(descuentoParts[0]) / 100);
|
||||
abonarConDescuento = saldo - descuento;
|
||||
|
||||
let abonarConDescuento2 = abonarConDescuento - (abonarConDescuento * (parseFloat(descuentoParts[1]) / 100));
|
||||
|
||||
$("#" + idTxtAbonar).val(FormatoNumero(abonarConDescuento2.toFixed(2), 2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
|
||||
|
||||
} else {
|
||||
$("#" + idTxtAbonar).val("");
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
}
|
||||
function calculaDescuentoEscalonado(saldo, TxtDescuento, TxtAbonar, chk, Text, Tipo) {
|
||||
let idTxtDescuento = TxtDescuento.id;
|
||||
let idTxtAbonar = TxtAbonar.id;
|
||||
|
||||
let descuentoValue = $("#" + idTxtDescuento).val().trim();
|
||||
let descuentoParts = descuentoValue.split('+');
|
||||
let abonarConDescuento = saldo;
|
||||
|
||||
if (descuentoParts.length === 0 || (descuentoParts.length === 1 && descuentoParts[0] === "")) {
|
||||
$("#" + idTxtAbonar).val(saldo.toFixed(2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
return;
|
||||
}
|
||||
|
||||
for (let i = 0; i < descuentoParts.length; i++) {
|
||||
let descuentoPart = descuentoParts[i].trim();
|
||||
|
||||
if (isNaN(parseFloat(descuentoPart)) || descuentoPart === "0") {
|
||||
continue;
|
||||
}
|
||||
|
||||
let descuento = abonarConDescuento * (parseFloat(descuentoPart) / 100);
|
||||
abonarConDescuento -= descuento;
|
||||
}
|
||||
|
||||
$("#" + idTxtAbonar).val(FormatoNumero(abonarConDescuento.toFixed(2), 2));
|
||||
FnCambia(chk, TxtAbonar, saldo, 1, Text, Tipo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
Reference in New Issue
Block a user