Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -4053,7 +4053,7 @@ Partial Class Compras_Compras
|
||||
|
||||
'Verifica funcionalidad 702 "Require orden de compra para factura de compra"
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(702) = "1" Then
|
||||
If UsuarioActual.Empresa.Funcionalidad(128) <> "" Then
|
||||
If Not EstaAsociadoACajaChica And Not EstaAsociadoAPersonal Then
|
||||
If Not CompraEstaVinculadaOC Then
|
||||
Alert("Debe de vincular una orden de compra para registrar la factura")
|
||||
|
||||
@@ -910,7 +910,7 @@ Partial Class PopUpVerFactura
|
||||
If Archivo.Exists Then
|
||||
HttpContext.Current.Response.Clear()
|
||||
HttpContext.Current.Response.ClearContent()
|
||||
HttpContext.Current.Response.ContentType = If(IO.Path.GetExtension(Archivo.Name) = "xml", "application/xml", "application/pdf")
|
||||
HttpContext.Current.Response.ContentType = If(IO.Path.GetExtension(Archivo.Name).ToLower = "xml", "application/xml", "application/pdf")
|
||||
HttpContext.Current.Response.AppendHeader("Content-disposition", String.Format("attachment; filename={0}", Archivo.Name))
|
||||
HttpContext.Current.Response.AddHeader("Content-Length", Archivo.Length.ToString())
|
||||
HttpContext.Current.Response.TransmitFile(Path)
|
||||
|
||||
Reference in New Issue
Block a user