From c13582c3f2edad5ab343bec64825a550cceac564 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Thu, 10 Mar 2022 09:36:25 -0700 Subject: [PATCH 01/25] Motivo para autorizaciones --- App_Code/ClsVentas.vb | 3 +- Ventas/CatAutorizacionLimites.aspx | 9 ++++ Ventas/CatAutorizacionLimites.aspx.vb | 72 +++++++++++++++++---------- Ventas/Ventas.aspx | 8 +++ Ventas/Ventas.aspx.vb | 10 ++-- 5 files changed, 71 insertions(+), 31 deletions(-) diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb index fa31af006..dba31cbce 100644 --- a/App_Code/ClsVentas.vb +++ b/App_Code/ClsVentas.vb @@ -5315,7 +5315,7 @@ Public Class ClsVentas #End Region - Public Function AddAutorizacionLimite(CveEmpresa As Integer, CveCliente As Integer, CveVendedor As Integer, Importe As Decimal, CveEstatus As Integer, CveUsuario As Integer, TipoAutorizacion As Integer, TipoDocumento As String, Optional DiasVencidos As Integer = 0) As Boolean + Public Function AddAutorizacionLimite(CveEmpresa As Integer, CveCliente As Integer, CveVendedor As Integer, Importe As Decimal, CveEstatus As Integer, CveUsuario As Integer, TipoAutorizacion As Integer, TipoDocumento As String, Optional DiasVencidos As Integer = 0, Optional Motivo As String = "") As Boolean Dim Retorno As Boolean = False DataAdapter("PA_Vta_AutorizacionLimitesAdd") With SqlAdapter.SelectCommand.Parameters @@ -5328,6 +5328,7 @@ Public Class ClsVentas .Add("@TipoAutorizacion", SqlDbType.Int).Value = TipoAutorizacion .Add("@TipoDocumento", SqlDbType.VarChar).Value = TipoDocumento .Add("@DiasVencidos", SqlDbType.Int).Value = DiasVencidos + .Add("@Motivo", SqlDbType.VarChar).Value = Motivo End With Try SqlAdapter.Fill(Data) diff --git a/Ventas/CatAutorizacionLimites.aspx b/Ventas/CatAutorizacionLimites.aspx index aa488d514..2b75e0e98 100644 --- a/Ventas/CatAutorizacionLimites.aspx +++ b/Ventas/CatAutorizacionLimites.aspx @@ -120,6 +120,7 @@ + @@ -203,6 +204,14 @@ +
+ +
+ + + +
+
+
+ +
+ + + +
+