diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx
index 2a402319a..a8e8d57fa 100644
--- a/Ventas/Ventas.aspx
+++ b/Ventas/Ventas.aspx
@@ -10677,8 +10677,8 @@
var td;
let idxHeader = 0;
for (var key in item) {
- if (idxHeader == 0 && '<%= "" %>' == '1') {
- tr.append('
| ');
+ if (idxHeader == 0 && '<%= If(UsuarioActual.CveEmpresa = 189, "1", "") %>' == '1') {
+ tr.append(' | ');
tr.append(' | ');
tr.append(' | ');
}
@@ -10695,7 +10695,7 @@
let idxColumn = 0;
for (var key in item) {
- if (idxColumn == 0 && '<%= "" %>' == '1') {
+ if (idxColumn == 0 && '<%= If(UsuarioActual.CveEmpresa = 189, "1", "") %>' == '1') {
let tdExistencia = ' select').select2('close');" + '">
';
tr.append('' + tdExistencia + ' | ');
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index b68ac498e..d89b53ba4 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -25679,7 +25679,7 @@ Partial Class Ventas
Dim AplicaCancelacionConPagos As Boolean = False
- If UsuarioActual.Empresa.Funcionalidad(109) = "1" AndAlso ObjFacturaCancelacion.TipoDocto.Contiene("Ing", "Rem") AndAlso Not EsRefacturacion AndAlso ObjFacturaCancelacion.Pagado > 0 Then
+ If (UsuarioActual.Empresa.Funcionalidad(109) = "1" OrElse UsuarioActual.Empresa.Funcionalidad(382) = "1") AndAlso ObjFacturaCancelacion.TipoDocto.Contiene("Ing", "Rem") AndAlso Not EsRefacturacion AndAlso ObjFacturaCancelacion.Pagado > 0 Then
AplicaCancelacionConPagos = True
End If
@@ -38305,7 +38305,21 @@ Partial Class Ventas
If UsuarioAutorizar.TienePermisoProceso(374) Then
txtUserDesc.Text = ""
txtPassDesc.Text = ""
- 'UpAutorizarDesc.Update()
+
+ 'ASIGNA EL PORCENTAJE A APLICAR DEL USUARIO QUE AUTORIZA
+ Dim RowUpdate As DataRow = TmpDT.Select($"Consec = {HdnConsecPS.Value}").FirstOrDefault()
+ If RowUpdate IsNot Nothing Then
+ Dim DrPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=RowUpdate("CvePS").ToString().ToEntero()).FiltroPrimero("")
+ If DrPS IsNot Nothing Then
+ If DrPS("PorMaximoDescuento").ToString().ToDecimal() > 0 Then
+ HdnPorcentajeMaxDescPS.Value = DrPS("PorMaximoDescuento").ToString()
+ Else
+ HdnPorcentajeMaxDescPS.Value = UsuarioAutorizar.DescuentoAutorizado.ToString()
+ End If
+ End If
+ End If
+
+ UpDescPS.Update()
RegistraScript("$('#ModalPermisoDesc').modal('hide');$('#ModalDescPS').modal({backdrop: 'static', keyboard: false});", "AUT")
Else