From 205cdbcef089c4a86795b4cf35b0be56dc84a933 Mon Sep 17 00:00:00 2001 From: JPerez Date: Wed, 28 May 2025 11:07:18 -0700 Subject: [PATCH] --FIX facturacion de remision ayven --- Ventas/PVCobranza.aspx | 2 +- Ventas/Ventas.aspx.vb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ventas/PVCobranza.aspx b/Ventas/PVCobranza.aspx index d45efe15e..441d2086c 100644 --- a/Ventas/PVCobranza.aspx +++ b/Ventas/PVCobranza.aspx @@ -1579,7 +1579,7 @@ let total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia; - if (<%= If(UsuarioActual.Empresa.CveEmpresa = 189, 1, 0)%> == 1) { + if (<%= If(UsuarioActual.Empresa.Funcionalidad(382) = "1", 1, 0)%> == 1) { let totalAnticipos = $get("TxtNCDev") ? ToDouble($get("TxtNCDev").value) : 0; TotalOtrosContado = $get("TxtImporteOtrosContado") ? ToDouble($get("TxtImporteOtrosContado").value) : 0; diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 32bdab3ed..4ca4f9f33 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -17006,7 +17006,7 @@ Partial Class Ventas End If - If UsuarioActual.CveEmpresa <> 189 AndAlso UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Rem") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then + If (Not UsuarioActual.CveEmpresa.Contiene(189, 197)) AndAlso UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Rem") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then Dim DebeGenerarMovimiento As Boolean = TmpDTDetalle.COUNT("CvePS", "CveTipoPS = 2") > 0