--FIX descuentos
--refacturacion con pagos , func 382 --activar ps adicionales/similares E189
This commit is contained in:
@@ -10677,8 +10677,8 @@
|
||||
var td;
|
||||
let idxHeader = 0;
|
||||
for (var key in item) {
|
||||
if (idxHeader == 0 && '<%= "" %>' == '1') {
|
||||
tr.append('<td style="font-weight:bold;"> </td>');
|
||||
if (idxHeader == 0 && '<%= If(UsuarioActual.CveEmpresa = 189, "1", "") %>' == '1') {
|
||||
tr.append('<td style="font-weight:bold;"></td>');
|
||||
tr.append('<td style="font-weight:bold;"></td>');
|
||||
tr.append('<td style="font-weight:bold;"></td>');
|
||||
}
|
||||
@@ -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 = '<a href="javascript:void(0);" title="Ver existencias" onclick="javascript:AbrirVentana(' + "'/Inventarios/PopUpExistenciasAlmacen.aspx?CvePS=" + item.id + "'" + ", 800, 547," + "'N'" + ",'PopUpBuscar');$('#C_Tab_TabGenerales_DdlPS > select').select2('close');" + '"> <img style="width:15px; height: 13px;" src="../Content/CustomIcons/existencia_verde.svg"></img > </a>';
|
||||
tr.append('<td>' + tdExistencia + '</td>');
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user