-
This commit is contained in:
@@ -179,7 +179,7 @@ Partial Class Inventarios_PrestamosdeProveedor
|
|||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoAlmacen, tValorInventario, TxtObservacionesEntrega.Text.Trim, 68, TxtObservacionesEntrega.Text.Trim, Fecha, idCtaContable, -1, CveMovimientoAlmacen:=CveMovimientoSalida, ImporteMX:=tValorInventario) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoAlmacen, tValorInventario, TxtObservacionesEntrega.Text.Trim, 68, TxtObservacionesEntrega.Text.Trim, Fecha, idCtaContable, -1, CveMovimientoAlmacen:=CveMovimientoSalida, ImporteMX:=tValorInventario) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
Else
|
Else
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoAlmacen, -tValorInventario, TxtObservacionesEntrega.Text.Trim, CveConceptoContable, TxtObservacionesEntrega.Text.Trim, Fecha, IdCtaContableOtro, -1, CveMovimientoAlmacen:=CveMovimientoSalida, CveClasificacion:=CveClasifCosto, ImporteMX:=tValorInventario) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoAlmacen, -tValorInventario, TxtObservacionesEntrega.Text.Trim, CveConceptoContable, TxtObservacionesEntrega.Text.Trim, Fecha, IdCtaContableOtro, -1, CveMovimientoAlmacen:=CveMovimientoSalida, CveClasificacion:=CveClasifCosto, ImporteMX:=-tValorInventario) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -1071,10 +1071,10 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
'si es selectedvalue = 2, es entrada ,3 -salida
|
||||||
Dim CveConceptoUsados As Integer = If(RBLOpcion.SelectedValue.ToEntero = 2, 1, 2)
|
Dim CveConceptoUsados As Integer = If(RBLOpcion.SelectedValue.ToEntero = 2, 1, 2)
|
||||||
|
|
||||||
If RBLOpcion.SelectedValue.ToEntero <> 3 AndAlso Not GenerarRNC Then
|
If RBLOpcion.SelectedValue.ToEntero = 2 Then
|
||||||
If EsDistribuidor Then
|
If EsDistribuidor Then
|
||||||
If Not ObjAcum.DistribuidorMovtosAdd(DdlClientes.SelectedValue.ToEntero, Dr("Cantidad").ToString.ToEntero(), Dr("CveTamaño").ToString.ToEntero, CveConceptoUsados, -1, UsuarioActual.CveUsuario,
|
If Not ObjAcum.DistribuidorMovtosAdd(DdlClientes.SelectedValue.ToEntero, Dr("Cantidad").ToString.ToEntero(), Dr("CveTamaño").ToString.ToEntero, CveConceptoUsados, -1, UsuarioActual.CveUsuario,
|
||||||
UsuarioActual.CveEmpresa, CveVenta, Dr("Observaciones").ToString, CveMovimiento:=CveMovimiento) Then
|
UsuarioActual.CveEmpresa, CveVenta, Dr("Observaciones").ToString, CveMovimiento:=CveMovimiento) Then
|
||||||
@@ -1638,51 +1638,6 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " CONSUMO INTERNO "
|
|
||||||
'Private Sub ActivaConsumoInterno()
|
|
||||||
' EsConsumoInterno = True
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
' DdlAlmacen.AutoPostBack = False
|
|
||||||
' DivFolio1.Visible = False
|
|
||||||
' DivFolio2.Visible = False
|
|
||||||
|
|
||||||
' divMonedaSeccion.Visible = False
|
|
||||||
' divGuia.Visible = False
|
|
||||||
' TrResponsable.Visible = False
|
|
||||||
' CargaPersonal()
|
|
||||||
|
|
||||||
|
|
||||||
' 'RECARGA ALMACENES SOLO DE CONSUMO INTERNO
|
|
||||||
' DdlAlmacen.Items.Clear()
|
|
||||||
' DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 22) 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
|
||||||
' DdlAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
|
||||||
' DdlAlmacen.SelectedValue = "-1"
|
|
||||||
' DdlAlmacen.DataBind()
|
|
||||||
' If IsNothing(Request("CveMovimiento")) Then
|
|
||||||
' DdlAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
|
|
||||||
' End If
|
|
||||||
|
|
||||||
'End Sub
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
#Region "PAQUETERIA GUIA"
|
|
||||||
'Protected Sub LnkAgregarGuia_Click(sender As Object, e As EventArgs)
|
|
||||||
' RegistraScript(String.Format("AbrirVentana('/General/PopUpPaqueteriasGuias.aspx?CveMovimiento={0}',800,620);", CveMovimiento))
|
|
||||||
'End Sub
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
|
|
||||||
#Region "DDL CLIENTE / CLIENTE SUCURSAL - SELECTED INDEX CHANGED"
|
#Region "DDL CLIENTE / CLIENTE SUCURSAL - SELECTED INDEX CHANGED"
|
||||||
@@ -1844,22 +1799,6 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Private Sub GuardarBitacora(CveVenta As Integer, RutaAdjunto As String, Obser As String)
|
|
||||||
Dim ObjEventos As New ClsOIEventos()
|
|
||||||
|
|
||||||
|
|
||||||
Try
|
|
||||||
If ObjEventos.AddEventoBitacora(Obser, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVenta) Then
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
|
||||||
Catch ex As Exception
|
|
||||||
OnError("Se presento un error al guardar la Bitacora", ex)
|
|
||||||
End Try
|
|
||||||
|
|
||||||
ObjEventos.Dispose()
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Protected Sub LnkAgregarUsado_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkAgregarUsado_Click(sender As Object, e As EventArgs)
|
||||||
AgregarUsado = True
|
AgregarUsado = True
|
||||||
|
|||||||
Reference in New Issue
Block a user