Ir al punto de venta si es remision en bdh

This commit is contained in:
2020-04-06 14:55:14 -07:00
parent 9ed7921a78
commit 2e80d4cb9d
2 changed files with 7 additions and 0 deletions

View File

@@ -269,6 +269,9 @@
function Ir(v) {
gotourl('/Ventas/Ventas.aspx?CveVenta=' + v);
}
function IrPV(v) {
gotourl('/Ventas/PV.aspx?CveVenta=' + v);
}
Sys.Application.add_load(function (s, e) {
});

View File

@@ -159,6 +159,10 @@ Partial Class PopUpBuscarFolio
e.Row.Cells(4).HorizontalAlign = HorizontalAlign.Right
Dim Liga As String = String.Format("<a class='Texto' href='javascript:Ir(""{0}"");'>", e.Row.DBCampo("CveVenta"))
If UsuarioActual.CveEmpresa = 140 AndAlso e.Row.DBCampo("TipoDocto").Contiene("Rem") Then
Liga = String.Format("<a class='Texto' href='javascript:IrPV(""{0}"");'>", e.Row.DBCampo("CveVenta"))
End If
e.Row.FCLiteral("LtlTipo").Text = String.Format("<div class='truncate' style='width:27px;'>{0}{1}</a></div>", Liga, e.Row.DBCampo("TipoDocto"))
e.Row.FCLiteral("LtlFolio").Text = String.Format("<div class='truncate' style='width:56px;'>{0}{1}</a></div>", Liga, e.Row.DBCampo("Folio"))
e.Row.FCLiteral("LtlFecha").Text = String.Format("<div class='truncate' style='width:64px;'>{0}{1}</a></div>", Liga, e.Row.DBCampo("Fecha").ToDate.ToShortDateString)