-- corrección a decimal, en carta porte
This commit is contained in:
@@ -34256,7 +34256,6 @@ Partial Class Ventas
|
|||||||
DdlUnidadCamion.DataSource = ObjInv.DtResultados
|
DdlUnidadCamion.DataSource = ObjInv.DtResultados
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2, Estatus:=1) Then
|
If ObjInv.GetCamiones(-1, UsuarioActual.CveEmpresa, 2, Estatus:=1) Then
|
||||||
DdlRemolque1.DataSource = ObjInv.DtResultados
|
DdlRemolque1.DataSource = ObjInv.DtResultados
|
||||||
End If
|
End If
|
||||||
@@ -34266,7 +34265,6 @@ Partial Class Ventas
|
|||||||
DdlUnidadCamion.DataBind()
|
DdlUnidadCamion.DataBind()
|
||||||
DdlUnidadCamion.Items.Insert(0, New ListItem("Seleccione Uno", "-1"))
|
DdlUnidadCamion.Items.Insert(0, New ListItem("Seleccione Uno", "-1"))
|
||||||
|
|
||||||
|
|
||||||
DdlRemolque1.DataBind()
|
DdlRemolque1.DataBind()
|
||||||
DdlRemolque1.Items.Insert(0, New ListItem("Seleccione Uno", "-1"))
|
DdlRemolque1.Items.Insert(0, New ListItem("Seleccione Uno", "-1"))
|
||||||
|
|
||||||
@@ -34304,7 +34302,7 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub DdlConfigAuto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlConfigAuto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
ValidaConfiguracionVeiculo()
|
ValidaConfiguracionVehiculo()
|
||||||
End Sub
|
End Sub
|
||||||
Public Sub CargaVentaCortePorte(CveVenta As Integer)
|
Public Sub CargaVentaCortePorte(CveVenta As Integer)
|
||||||
TxtFechaEntregaCP.Enabled = False
|
TxtFechaEntregaCP.Enabled = False
|
||||||
@@ -34333,7 +34331,7 @@ Partial Class Ventas
|
|||||||
DdlUnidadCamion.Enabled = False
|
DdlUnidadCamion.Enabled = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ValidaConfiguracionVeiculo()
|
Private Sub ValidaConfiguracionVehiculo()
|
||||||
DvRemolque1.Visible = False
|
DvRemolque1.Visible = False
|
||||||
DvRemolque2.Visible = False
|
DvRemolque2.Visible = False
|
||||||
|
|
||||||
@@ -34346,7 +34344,6 @@ Partial Class Ventas
|
|||||||
If ObjGrales.GetCartaPorteConfigAutoTransportes() Then
|
If ObjGrales.GetCartaPorteConfigAutoTransportes() Then
|
||||||
Dim Remolque As String = ObjGrales.DtResultados.FiltroPrimeroValor("Remolque", $" CveConfigAutoTransporte ='{DdlConfigAuto.SelectedValue}'")
|
Dim Remolque As String = ObjGrales.DtResultados.FiltroPrimeroValor("Remolque", $" CveConfigAutoTransporte ='{DdlConfigAuto.SelectedValue}'")
|
||||||
|
|
||||||
|
|
||||||
If Remolque = "1" Then
|
If Remolque = "1" Then
|
||||||
RequiereRemolque = True
|
RequiereRemolque = True
|
||||||
MostrarRemolques = True
|
MostrarRemolques = True
|
||||||
@@ -34369,7 +34366,6 @@ Partial Class Ventas
|
|||||||
MostrarRemolques = False
|
MostrarRemolques = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If RequiereRemolque Or MostrarRemolques Then
|
If RequiereRemolque Or MostrarRemolques Then
|
||||||
DvRemolque1.Visible = True
|
DvRemolque1.Visible = True
|
||||||
End If
|
End If
|
||||||
@@ -34380,7 +34376,6 @@ Partial Class Ventas
|
|||||||
DvConfiguracionVeiculo.Visible = True
|
DvConfiguracionVeiculo.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
UpEmitirTransitorio.Update()
|
UpEmitirTransitorio.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub DdlRemolque1_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlRemolque1_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
@@ -34397,14 +34392,11 @@ Partial Class Ventas
|
|||||||
End Using
|
End Using
|
||||||
|
|
||||||
DdlRemolque2.DataBind()
|
DdlRemolque2.DataBind()
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
DvRemolque2.Visible = False
|
DvRemolque2.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
DdlRemolque2.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
DdlRemolque2.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
|
||||||
|
|
||||||
UpEmitirTransitorio.Update()
|
UpEmitirTransitorio.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -34441,7 +34433,7 @@ Partial Class Ventas
|
|||||||
If CveEntregaAlmacen > 0 Then
|
If CveEntregaAlmacen > 0 Then
|
||||||
|
|
||||||
For Each RowPS As DataRow In ObjFactura.DtMercancias.Rows
|
For Each RowPS As DataRow In ObjFactura.DtMercancias.Rows
|
||||||
If Not ObjGral.AddEntregaAlmacenRutaDetalle(CveEntregaAlmacen, RowPS("CvePS").ToString().ToEntero, RowPS("Cantidad").ToString().ToEntero, RowPS("CveUM").ToString().ToEntero, UsuarioActual.CveUsuario) Then
|
If Not ObjGral.AddEntregaAlmacenRutaDetalle(CveEntregaAlmacen, RowPS("CvePS").ToString().ToEntero, RowPS("Cantidad").ToString().ToDecimal, RowPS("CveUM").ToString().ToEntero, UsuarioActual.CveUsuario) Then
|
||||||
ErrorProceso = True
|
ErrorProceso = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user