--FIX descarga de formato de ticket
This commit is contained in:
@@ -544,12 +544,12 @@ Partial Class Ventas_PVCobranza
|
|||||||
Dim ExistePDF As Boolean = False
|
Dim ExistePDF As Boolean = False
|
||||||
Dim ArchivoPDF As String = String.Format("{0}/PDF/{1}/{2}.pdf", UsuarioActual.Empresa.Ruta, ObjFactura.TipoDocto, ObjFactura.SerieFolio)
|
Dim ArchivoPDF As String = String.Format("{0}/PDF/{1}/{2}.pdf", UsuarioActual.Empresa.Ruta, ObjFactura.TipoDocto, ObjFactura.SerieFolio)
|
||||||
|
|
||||||
If File.Exists(ArchivoPDF) Then
|
If File.Exists(ArchivoPDF) AndAlso ObjFactura.TipoDocto = "Rem" Then
|
||||||
ExistePDF = True
|
ExistePDF = True
|
||||||
Else
|
Else
|
||||||
'REGENERAR EL PDF
|
'REGENERAR EL PDF
|
||||||
Try
|
Try
|
||||||
GenerarPDFVenta(CveVenta, AplicaPagare:="1", GuardarPDF:=True, RegenerarPDF:=True, DescargarArchivo:=False)
|
GenerarPDFVenta(CveVenta, AplicaPagare:="1", GuardarPDF:=True, RegenerarPDF:=True, DescargarArchivo:=False, EsTicket:=True)
|
||||||
If File.Exists(ArchivoPDF) Then
|
If File.Exists(ArchivoPDF) Then
|
||||||
ExistePDF = True
|
ExistePDF = True
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user