diff --git a/Bancos/FluctuacionCambiaria.aspx.vb b/Bancos/FluctuacionCambiaria.aspx.vb
index 3146fb542..ad9f24a9d 100644
--- a/Bancos/FluctuacionCambiaria.aspx.vb
+++ b/Bancos/FluctuacionCambiaria.aspx.vb
@@ -7,7 +7,14 @@ Partial Class Bancos_FluctuacionCambiaria
Inherits ClsPaginas
#Region "PROPIEDADES"
-
+ Private Property LblTotal() As String
+ Get
+ Return ViewState("Total").ToString
+ End Get
+ Set(value As String)
+ ViewState("Total") = value
+ End Set
+ End Property
#End Region
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
@@ -60,16 +67,20 @@ Partial Class Bancos_FluctuacionCambiaria
Private Sub CargaDatosCompra()
Dim ObjBancos As New ClsBancos
- LblTotalCompras.Text = "0.00"
+ 'LblTotalCompras.Text = "0.00"
If ObjBancos.GetFluctuaciones(TxtFecha.Text.ToDate, 1, UsuarioActual.CveEmpresa) Then
GvCompras.DataSource = ObjBancos.DtResultados
- LblTotalCompras.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
+ 'LblTotalCompras.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
+ LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
Else
GvCompras.DataSource = Nothing
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
End If
ObjBancos.Dispose()
GvCompras.DataBind()
+ If GvCompras.Rows.Count > 0 Then
+ GvCompras.Rows(GvCompras.Rows.Count - 1).CssClass = "SubTotales2"
+ End If
End Sub
Private Sub CargaDatosVentas()
@@ -201,7 +212,7 @@ Partial Class Bancos_FluctuacionCambiaria
Dim TC As Decimal = 2 ' se pone 2, para que cumpla con el check constrains de complementarias
- Total = LblTotalCompras.Text.ToDecimal
+ Total = LblTotal.ToDecimal
If Total > 0 Then
CveConceptoContable = 64
CveCuenta = CveCuentaGanancia
diff --git a/Compras/Compras.aspx b/Compras/Compras.aspx
index 40e4e3811..e79fadb0c 100644
--- a/Compras/Compras.aspx
+++ b/Compras/Compras.aspx
@@ -907,8 +907,10 @@
|
|
-
-
+ |
+
+ Deglose 6%
+ <%----%>
|
<%--
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index d654889be..8fea41205 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -1025,10 +1025,17 @@ Partial Class Compras_Compras
Set(value As Double)
ViewState("SubTotal2Original") = value
End Set
- End Property
+ End Property
+
Private Property IVAOriginal As Double
- Get
- Return ViewState("IVAOriginal").ToString.ToDouble
+ Get
+
+ If ViewState("IVAOriginal") Is Nothing Then
+ Return 0
+ Else
+ Return ViewState("IVAOriginal").ToString.ToDouble
+ End If
+
End Get
Set(value As Double)
ViewState("IVAOriginal") = value
@@ -2087,8 +2094,12 @@ Partial Class Compras_Compras
End If
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
- DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
-
+
+ If UsuarioActual.Empresa.Funcionalidad(577).ToEntero = 1 Then
+ DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
+ End If
+
+
End If
@@ -2237,15 +2248,15 @@ Partial Class Compras_Compras
If UsuarioActual.Empresa.Funcionalidad(577).ToString = "1" Then
- 'If UsuarioActual.CveRol = 1 Then
- ' Alert("Ok funcionalidad 577")
- 'End If
-
If RetencionIVA = 0 And IVAOriginal > 0 Then
For Each dRow As DataRow In TmpDT.Rows
If dRow("CveTipoPS").ToString.ToEntero = 1 Then
- tdIVA6.Visible = True
+
+ 'comentado para reubicar el boton
+ 'tdIVA6.Visible = True
+
+
Exit For
End If
Next
@@ -17024,8 +17035,9 @@ Partial Class Compras_Compras
If RetencionIVA = 0 And IVAOriginal > 0 Then
For Each dRow As DataRow In TmpDT.Rows
- If dRow("CveTipoPS").ToString.ToEntero = 1 Then
- tdIVA6.Visible = True
+ If dRow("CveTipoPS").ToString.ToEntero = 1 Then
+ 'Comnetado para reubicar el boton
+ 'tdIVA6.Visible = True
Exit For
End If
Next
@@ -19305,7 +19317,7 @@ Partial Class Compras_Compras
DdlRetIVAConcepto.SelectedValueExist("5")
- LblRetIVA.Text = "0.06%"
+ LblRetIVA.Text = "6.0%"
RetencionIVA = TmpDT.SUMD("RetIVA")
TxtRetIVA.Text = RetencionIVA.ToString("###,###,###.00")
diff --git a/Compras/ReembolsosComprobaciones.aspx.vb b/Compras/ReembolsosComprobaciones.aspx.vb
index f1733aaf5..6d89b4c77 100644
--- a/Compras/ReembolsosComprobaciones.aspx.vb
+++ b/Compras/ReembolsosComprobaciones.aspx.vb
@@ -434,7 +434,7 @@ Partial Class Compras_ReembolsosComprobaciones
End If
End If
Dim FolioIENew = ObjIE.GetNextFolio(If(CveCajaChica > 0, CveCajaChica, CvePersonal), 8).ToString
- CveIECajaChica = ObjIE.AddBancos_IE(CveCajaChica, 8, TxtFechaDocumento.Text.Trim.ToDate, FolioIENew, String.Format("Transferencia Cta: {0}", DdlCajaChica.SelectedItem), TxtImporteVinculado.Text.ToDecimal, CveMoneda, 0, TxtObservaciones.Text.Trim, "", False, False, -1, CvePrePolizaIERegistrado, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked Or CveCajaChica > 0, True, False))
+ CveIECajaChica = ObjIE.AddBancos_IE(CveCajaChica, 8, If(ChkReembolsarSinBancos.Checked, TxtFechaPrePoliza.Text.ToDate, TxtFechaDocumento.Text.Trim.ToDate), FolioIENew, String.Format("Transferencia Cta: {0}", DdlCajaChica.SelectedItem), TxtImporteVinculado.Text.ToDecimal, CveMoneda, 0, TxtObservaciones.Text.Trim, "", False, False, -1, CvePrePolizaIERegistrado, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked Or CveCajaChica > 0, True, False))
'AGREGO PREPOLIZA IE BANCOS
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaIERegistrado, True, TxtImporteVinculado.Text.ToDecimal, String.Format("Transferencia Cta: {0}", DdlCajaChica.SelectedItem), 30, TxtObservaciones.Text, TxtFechaDocumento.Text.ToDate, IdCuentaBancaria, -1, CveIE:=CveIECajaChica, ImporteME:=If(tipoCambio = 1, 0, TxtImporteVinculado.Text.ToDecimal), ImporteMX:=TxtImporteVinculado.Text.ToDecimal * tipoCambio) Then
MsgError = "Error al registrar detalle de concepto bancario"
diff --git a/Compras/eFacturas.aspx.vb b/Compras/eFacturas.aspx.vb
index bf1189f9b..9ad938988 100644
--- a/Compras/eFacturas.aspx.vb
+++ b/Compras/eFacturas.aspx.vb
@@ -2815,6 +2815,9 @@ Partial Class Compras_eFacturas
CveProveedor = gvRow.DataKey("CveProveedor").ToEntero
Dim ObjCompras As New ClsCompras
+
+ Dim TieneRegistros As Boolean = False
+
If ObjCompras.GetCompararComplementoPago(gvRow.DataKey("CveProveedor").ToEntero, Monto, nodePagos2.InnerXml.Replace("pago10:", ""), UsuarioActual.CveEmpresa) Then
GvVincularPago.DataSource = ObjCompras.DtResultados
@@ -2822,7 +2825,7 @@ Partial Class Compras_eFacturas
SerieFolioIE = ObjCompras.DtResultados.Rows(0)("SerieFolio").ToString
DivVincularPagoManualmente.Visible = False
BtnVincularPago.Visible = True
-
+ TieneRegistros = True
Else
DivVincularPagoManualmente.Visible = True
BtnVincularPago.Visible = False
@@ -2835,6 +2838,7 @@ Partial Class Compras_eFacturas
+
For Each drow As DataRow In ObjCompras.DtResultados.FiltraParametros("CveIE > 0 AND FechaDocumento IS NOT NULL", "", {"FechaDocumento"}).Rows
Dim FechaDocumento As Date = drow("FechaDocumento").ToString.ToDate
@@ -2873,12 +2877,18 @@ Partial Class Compras_eFacturas
TextoDiferenciaImporte = $" - IE ${ImporteIES.FormatoNumero} Diferencia { DiferenciaImportes.FormatoNumero() } "
BtnVincularPago.Visible = False
MSGComplemento = MSGComplemento & $" Existe una diferencia mayor a $5.00 ({Math.Abs(DiferenciaImportes)})"
+
+ If TieneRegistros AndAlso UsuarioActual.TienePermisoProceso(286) Then
+ DivVincularPagoManualmente.Visible = True
+ End If
+
Else
'BtnVincularPago.Visible = True
'TextoDiferenciaImporte = ""
End If
+
LblSerieFolioPago.Text = $"{SeriePago}-{FolioPago}"
LblImportePago.Text = Monto.ToString("###,###,###.00") 'ImportePago.FormatoNumero
LblPagosCantidad.Text = PagosCantidad.ToString
@@ -2893,7 +2903,7 @@ Partial Class Compras_eFacturas
Else
LblMensajeComlementoError.Text = ""
DVMensajecomplementoError.Visible = False
-
+ DivVincularPagoManualmente.Visible = False
End If
diff --git a/Contabilidad/RegPrePoliza1.aspx b/Contabilidad/RegPrePoliza1.aspx
index 9d546bf50..9455bf6e8 100644
--- a/Contabilidad/RegPrePoliza1.aspx
+++ b/Contabilidad/RegPrePoliza1.aspx
@@ -462,6 +462,13 @@
+
+ TC
+
+
+
+
+
Cargo
diff --git a/Contabilidad/RegPrePoliza1.aspx.vb b/Contabilidad/RegPrePoliza1.aspx.vb
index ea0ac4dff..36f359c07 100644
--- a/Contabilidad/RegPrePoliza1.aspx.vb
+++ b/Contabilidad/RegPrePoliza1.aspx.vb
@@ -396,6 +396,10 @@ Partial Class ContabilidadC_RegPrePoliza
GvPrePoliza.DataSource = DtMovimientos
GvPrePoliza.DataBind()
+ If UsuarioActual.CveRol = 1 AndAlso DtMovimientos.COUNT("TC", "TC > 1") > 0 Then
+ GvPrePoliza.Columns(7).Visible = True
+ End If
+
If DtMovimientos.FiltraParametros("CveConceptoContable IN (2,17)").Rows.Count > 0 Then
LnkComplementoPago.Visible = True
End If
diff --git a/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc b/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc
index 0cbc414c6..2068a25b8 100644
--- a/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc
+++ b/Contabilidad2/Reportes/RepMovimientosAuxiliaresCatalogo.rdlc
@@ -1334,7 +1334,7 @@
8.01986in
- 0.81597in
+ 1.14931in
true
true
@@ -1444,23 +1444,32 @@
+
+ Cuenta:
+
+
=Parameters!Cuenta.Value
Cuenta
- 0.47708in
- 1.82615in
+ 0.84375in
0.25in
- 4.42313in
+ 5.42127in
3
|