- registro de caja. cuando no hay facturas.
This commit is contained in:
@@ -628,14 +628,14 @@
|
||||
function txtSumaCuentaRetorno(txt) {
|
||||
debugger;
|
||||
var comision2 = ToDouble($('#C_TxtCuentaRetorno').val());
|
||||
if (comision2 > ValorTotalSeleccionado) {
|
||||
$('#C_TxtCuentaRetorno').val(descuento)
|
||||
alert("No es posible poner un IVA superior a lo seleccionado")
|
||||
} else {
|
||||
//if (comision2 > ValorTotalSeleccionado) {
|
||||
// $('#C_TxtCuentaRetorno').val(descuento)
|
||||
// alert("No es posible poner un IVA superior a lo seleccionado")
|
||||
//} else {
|
||||
saldo = ValorTotalSeleccionado - comision2 + comision - IVA - ComisionIntermediario;
|
||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||
descuento = ToDouble($('#C_TxtCuentaRetorno').val())
|
||||
}
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -172,13 +172,13 @@ Partial Class Bancos_DepositosCaja
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
|
||||
Dim tContador As Integer = 0
|
||||
For Each Gvr As GridViewRow In GvFacturas.Rows
|
||||
If Gvr.FCCheckBox("ChkFactura").Checked Then TotalImporte += Gvr.DataKey("Importe").ToDecimal
|
||||
Next
|
||||
|
||||
If TotalImporte = 0 Then
|
||||
Alert("Seleccion una factura para realizar el depósito", TipoMensaje.MsgAdvertencia)
|
||||
If TotalImporte = 0 AndAlso CuentaRetorno <> 0 Then
|
||||
Alert("Seleccione una factura para realizar el depósito", TipoMensaje.MsgAdvertencia)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user