@@ -333,9 +333,10 @@
} else {
txt.value = "";
}
-
- $get('TxtImporte').value = FormatoNumero(SumaValores(), 2);
-
+ let valor = FormatoNumero(SumaValores(), 2);
+ $('#hdnTotal').val(valor);
+ $get('TxtImporte').value = valor;
+
}
function FnCambia(chk, txt, saldo, op, text) {
@@ -353,7 +354,9 @@
}
}
var Suma = SumaValores();
- $get('TxtImporte').value = FormatoNumero(Suma, 2);
+ let valor = FormatoNumero(SumaValores(), 2);
+ $('#C_hdnTotal').val(valor);
+ $get('TxtImporte').value = valor;
if ($get('TxtTotal') != null) {
$get('TxtTotal').value = FormatoNumero(Suma + (ToDouble($get('TxtComisiones').value * -1)), 2);
diff --git a/Bancos/Devoluciones.aspx.cs b/Bancos/Devoluciones.aspx.cs
index 9a4c6db72..f8131736a 100644
--- a/Bancos/Devoluciones.aspx.cs
+++ b/Bancos/Devoluciones.aspx.cs
@@ -344,12 +344,26 @@ public partial class Bancos_Devoluciones : ClsPaginas
return;
}
- if (OpcionDevolucion.SelectedValue.ToEntero() == 3 && TipoDevolucion.SelectedValue.ToString().ToEntero() == 2 && TxtValor.Text == "")
+ if (OpcionDevolucion.SelectedValue.ToEntero() == 3 && TipoDevolucion.SelectedValue.ToString().ToEntero() == 2)
{
- Alert("Debe ingresar un importe", TipoMensaje.MsgAdvertencia);
- return;
+ if (TxtValor.Text == "")
+ {
+ Alert("Debe ingresar un importe", TipoMensaje.MsgAdvertencia);
+ return;
+ }
+ else
+ {
+ int valor = (TxtValor.Text.ToEntero() * TxtVecesAplicar.Text.ToEntero()).ToEntero();
+ int total = hdnTotal.Text.ToEntero();
+ if (valor <> total)
+ {
+ Alert("La cantidad total debe ser igual a lo seleccionado");
+ }
+ }
+
}
+
ClsBancos ObjIE = new ClsBancos();
ClsContabilidad ObjMov = new ClsContabilidad(ObjIE.IniciaTransacSQL());
ClsCompras ObjComp = new ClsCompras(ObjIE.IniciaTransacSQL());
diff --git a/Contabilidad/ContabilidadElectronica.aspx.vb b/Contabilidad/ContabilidadElectronica.aspx.vb
index 0e154f034..e59728d33 100644
--- a/Contabilidad/ContabilidadElectronica.aspx.vb
+++ b/Contabilidad/ContabilidadElectronica.aspx.vb
@@ -183,20 +183,26 @@ Partial Class Contabilidad_ContabilidadElectronica
Dim FechaI = String.Format("01/{0}/{1}", DdlPeriodo.SelectedValue.PadLeft(2, "0"c), DdlEjercicio.SelectedValue).ToDate
Dim FechaF = FechaI.LastDayOfMonth
Dim DtCuentas As New DataTable
-
- Dim ObjConpaq As New ClsContPAQi(UsuarioActual.Empresa)
- If ObjConpaq.GetBalanzaElectronica(FechaI, FechaF) Then
- DtCuentas = ObjConpaq.DtResultados
+ If UsuarioActual.Empresa.TipoContabilidad = 1 Then
+ Dim objconta As New ClsContabilidad
+ If objconta.GetBalanzaComprobacion(FechaI, FechaF, UsuarioActual.CveEmpresa) Then
+ DtCuentas = objconta.DtResultados
+ End If
+ objconta.Dispose()
+ Else
+ Dim ObjConpaq As New ClsContPAQi(UsuarioActual.Empresa)
+ If ObjConpaq.GetBalanzaElectronica(FechaI, FechaF) Then
+ DtCuentas = ObjConpaq.DtResultados
+ End If
+ ObjConpaq.Dispose()
End If
- ObjConpaq.Dispose()
-
If DtCuentas IsNot Nothing AndAlso DtCuentas.Rows.Count > 0 Then
Dim Str As New StringBuilder
'CABECERA
Str.Append("")
- Str.Append("
")
Next
@@ -225,7 +231,6 @@ Partial Class Contabilidad_ContabilidadElectronica
'FIN
Str.Append("")
-
'GUARDA ARHIVO
ArchivoBalanza = Server.MapPath(String.Format("~/Empresas/{0}/ContabilidadElectronica/{1}{2}{3}BN.xml", UsuarioActual.CveEmpresa, UsuarioActual.Empresa.RFC, DdlEjercicio.SelectedValue, DdlPeriodo.SelectedValue.PadLeft(2, "0"c)))
diff --git a/Inventarios/InventarioFisicoDetalle.aspx b/Inventarios/InventarioFisicoDetalle.aspx
index dcc4ec481..4a530b714 100644
--- a/Inventarios/InventarioFisicoDetalle.aspx
+++ b/Inventarios/InventarioFisicoDetalle.aspx
@@ -369,9 +369,14 @@
" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info">