-
This commit is contained in:
@@ -77,9 +77,6 @@ Partial Class Boletos
|
|||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
|
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Request.QueryString("CveViaje") Is Nothing And UsuarioActual.CveVendedor <> Nothing And UsuarioActual.CveVendedor <> -1 Then
|
If Request.QueryString("CveViaje") Is Nothing And UsuarioActual.CveVendedor <> Nothing And UsuarioActual.CveVendedor <> -1 Then
|
||||||
Response.Redirect("/Transportes/RepViajes.aspx")
|
Response.Redirect("/Transportes/RepViajes.aspx")
|
||||||
End If
|
End If
|
||||||
@@ -204,9 +201,7 @@ Partial Class Boletos
|
|||||||
Else
|
Else
|
||||||
ImporteR = ObjDestinos.DtResultados.FiltroPrimeroValor("Importe").ToDecimal.RoundSQL
|
ImporteR = ObjDestinos.DtResultados.FiltroPrimeroValor("Importe").ToDecimal.RoundSQL
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ImporteR = If(edad <= 4 Or edad >= 60, ImporteR - 20, ImporteR)
|
ImporteR = If(edad <= 4 Or edad >= 60, ImporteR - 20, ImporteR)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ImporteR > 0 Then
|
If ImporteR > 0 Then
|
||||||
@@ -256,8 +251,6 @@ Partial Class Boletos
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
For Each dr As DataRow In DtPasajeros.Rows
|
For Each dr As DataRow In DtPasajeros.Rows
|
||||||
|
|
||||||
|
|
||||||
Dim CveViajePasajero As Integer = ObjTransporte.AddViajesPasajeros(CveViaje, dr("CveDestinoOrigen").ToString.ToEntero, dr("CveDestinoFinal").ToString.ToEntero, UsuarioActual.CveVendedor, dr("Importe").ToString.ToDecimal, dr("Asiento").ToString.ToEntero, dr("Nombre").ToString, dr("FechaNacimiento").ToString.ToDate, dr("CveSexo").ToString.ToBool, dr("Visa").ToString, dr("Celular").ToString, dr("Observaciones").ToString, UsuarioActual.CveUsuario)
|
Dim CveViajePasajero As Integer = ObjTransporte.AddViajesPasajeros(CveViaje, dr("CveDestinoOrigen").ToString.ToEntero, dr("CveDestinoFinal").ToString.ToEntero, UsuarioActual.CveVendedor, dr("Importe").ToString.ToDecimal, dr("Asiento").ToString.ToEntero, dr("Nombre").ToString, dr("FechaNacimiento").ToString.ToDate, dr("CveSexo").ToString.ToBool, dr("Visa").ToString, dr("Celular").ToString, dr("Observaciones").ToString, UsuarioActual.CveUsuario)
|
||||||
|
|
||||||
If CveViajePasajero < 1 Then
|
If CveViajePasajero < 1 Then
|
||||||
@@ -265,7 +258,6 @@ Partial Class Boletos
|
|||||||
SbAlert.Append("Ocurrió un error al generar el viaje")
|
SbAlert.Append("Ocurrió un error al generar el viaje")
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
dr("CveViajePasajero") = CveViajePasajero
|
dr("CveViajePasajero") = CveViajePasajero
|
||||||
'dr("Numero") = dr("Importe").ToString
|
'dr("Numero") = dr("Importe").ToString
|
||||||
Next
|
Next
|
||||||
@@ -490,6 +482,7 @@ Partial Class Boletos
|
|||||||
ObjFactura.CveSubProyectoEjecucion = CveSubProyecto
|
ObjFactura.CveSubProyectoEjecucion = CveSubProyecto
|
||||||
ObjFactura.SetSubProyecto()
|
ObjFactura.SetSubProyecto()
|
||||||
ObjFactura.SetSubProyectoMatriz()
|
ObjFactura.SetSubProyectoMatriz()
|
||||||
|
If ObjFactura.CveMoneda >= 2 Then ObjFactura.TipoCambio = GlobalTipoCambio(ObjFactura.Fecha).ToDecimal
|
||||||
|
|
||||||
For Each Dr As DataRow In DtPasajeros.Rows
|
For Each Dr As DataRow In DtPasajeros.Rows
|
||||||
Dim Obs As String = Dr("Observaciones").ToString
|
Dim Obs As String = Dr("Observaciones").ToString
|
||||||
@@ -501,7 +494,6 @@ Partial Class Boletos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim PorcentajeIVA As Decimal = 0
|
Dim PorcentajeIVA As Decimal = 0
|
||||||
|
|
||||||
Dim DrPS As DataRow = ClsPaginas.GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CvePSBoleto).FiltroPrimero("") ' Estado = -1
|
Dim DrPS As DataRow = ClsPaginas.GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CvePSBoleto).FiltroPrimero("") ' Estado = -1
|
||||||
|
|
||||||
If DrPS Is Nothing Then
|
If DrPS Is Nothing Then
|
||||||
@@ -544,7 +536,4 @@ Partial Class Boletos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Reference in New Issue
Block a user