From 4a7854492904668939e54e33d2376b01485b474d Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Mon, 21 Oct 2024 11:48:27 -0700 Subject: [PATCH] --FIX generacion de NC en cobranza --- App_Code/Modelos.vb | 8 +- Ventas/PVCobranza.aspx | 7 +- Ventas/PVCobranza.aspx.vb | 223 +++++++++++++++++++++++++------------- 3 files changed, 158 insertions(+), 80 deletions(-) diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb index 78f1bf2e6..701782670 100644 --- a/App_Code/Modelos.vb +++ b/App_Code/Modelos.vb @@ -742,7 +742,7 @@ Namespace Modelos Return Not ErrorPrePolizas End Function - Public Function EmitirFactura(Optional Timbrar As Boolean = True, Optional Transac As SqlClient.SqlTransaction = Nothing, Optional Modulo As String = "Modelos/GuardarVentaM") As MMensajeFactura + Public Function EmitirFactura(Optional Timbrar As Boolean = True, Optional Transac As SqlClient.SqlTransaction = Nothing, Optional Modulo As String = "Modelos/GuardarVentaM", Optional MostrarURL As Boolean = False) As MMensajeFactura Dim Retorno As New MMensajeFactura() If Me.Version = "3.3" AndAlso Not Me.TipoDocto.Contiene("Ped", "PeC") Then @@ -1117,8 +1117,12 @@ Namespace Modelos End If 'MENSAJE PRINCIPAL - MensajeAlert.AppendFormat(String.Format("
La {0}: {1} se generó correctamente.

", If(Me.TipoDocumento = "Ingresos", "Factura", Me.TipoDocumento), Me.SerieFolio)) + If MostrarURL Then + MensajeAlert.AppendFormat("
La {0}: {1} se generó correctamente.

", If(Me.TipoDocumento = "Ingresos", "Factura", Me.TipoDocumento), Me.SerieFolio, Me.CveVenta) + Else + MensajeAlert.AppendFormat(String.Format("
La {0}: {1} se generó correctamente.

", If(Me.TipoDocumento = "Ingresos", "Factura", Me.TipoDocumento), Me.SerieFolio)) + End If ' DESCARGA XML - SI SE TIMBRA MANDA CORREO CON FACTURA If SeTimbro Then diff --git a/Ventas/PVCobranza.aspx b/Ventas/PVCobranza.aspx index 56b7a9975..6e34641e4 100644 --- a/Ventas/PVCobranza.aspx +++ b/Ventas/PVCobranza.aspx @@ -535,8 +535,8 @@
$ - - + +