Merge branch 'master' of http://agonzalez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -5778,6 +5778,8 @@ Public Class ClsContabilidad
|
|||||||
ValorPolizaDescuadre = SqlAdapter.SelectCommand.Parameters("@Valor").Value.ToString.ToEntero
|
ValorPolizaDescuadre = SqlAdapter.SelectCommand.Parameters("@Valor").Value.ToString.ToEntero
|
||||||
MensajePolizaDescuadre = SqlAdapter.SelectCommand.Parameters("@MsgSalida").Value.ToString
|
MensajePolizaDescuadre = SqlAdapter.SelectCommand.Parameters("@MsgSalida").Value.ToString
|
||||||
ValorDiferencia = SqlAdapter.SelectCommand.Parameters("@Diferencia").Value.ToString
|
ValorDiferencia = SqlAdapter.SelectCommand.Parameters("@Diferencia").Value.ToString
|
||||||
|
Dim MsgPrePoliza As String = SqlAdapter.SelectCommand.Parameters("@MsgPrePolizaSalida").Value.ToString
|
||||||
|
If MsgPrePoliza <> "" Then MsgPrePoliza.GuardaLogAD("LogPrePoliza")
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al validar la PrePoliza.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
OnError("Ocurrió un error al validar la PrePoliza.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
@@ -625,10 +625,10 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
Dim Filtro As String '= If(ObjInventario.DtResultados.Rows(0)("TipoDocto").ToString.Contiene({"Ing", "Dev", "Ped"}), "CveConcepto = 3", "CveConcepto = 9")
|
Dim Filtro As String '= If(ObjInventario.DtResultados.Rows(0)("TipoDocto").ToString.Contiene({"Ing", "Dev", "Ped"}), "CveConcepto = 3", "CveConcepto = 9")
|
||||||
Select Case ObjInventario.DtResultados.Rows(0)("TipoDocto").ToString
|
Select Case ObjInventario.DtResultados.Rows(0)("TipoDocto").ToString
|
||||||
Case "Ing", "Ped"
|
Case "Ing", "Ped"
|
||||||
Filtro = "CveConcepto = 3"
|
Filtro = "CveConcepto IN (3,40)"
|
||||||
Case "Dev"
|
Case "Dev"
|
||||||
'cuand es devolucionventa=1, es cancelación de la devolución
|
'cuand es devolucionventa=1, es cancelación de la devolución
|
||||||
If EsDevolucionVenta = 1 Then Filtro = "CveConcepto = 18" Else Filtro = "CveConcepto = 3"
|
If EsDevolucionVenta = 1 Then Filtro = "CveConcepto = 18" Else Filtro = "CveConcepto IN (3,40)"
|
||||||
Case Else
|
Case Else
|
||||||
Filtro = "CveConcepto = 9"
|
Filtro = "CveConcepto = 9"
|
||||||
End Select
|
End Select
|
||||||
@@ -1640,7 +1640,7 @@ Partial Class Inventarios_RecepcionEntrega
|
|||||||
Dim CantidadSaldo As Decimal = 0
|
Dim CantidadSaldo As Decimal = 0
|
||||||
|
|
||||||
|
|
||||||
If CveVendedor > 0 AndAlso (UsuarioActual.Empresa.Funcionalidad(146) = "1" Or CveCliente > 0) AndAlso TipoDocto <> "Ped" Then 'no debe considerar cuando es pedido de contrato
|
If CveVendedor > 0 AndAlso (UsuarioActual.Empresa.Funcionalidad(146) = "1" Or CveCliente > 0) Then 'no debe considerar cuando es pedido de contrato
|
||||||
If TipoMovimiento = 1 Then ' SI ES DEVOLUCION NO APLICA APARTADO
|
If TipoMovimiento = 1 Then ' SI ES DEVOLUCION NO APLICA APARTADO
|
||||||
' SALIDA POR TRASPASO DE LOS ALMACENES DE APARTADO
|
' SALIDA POR TRASPASO DE LOS ALMACENES DE APARTADO
|
||||||
For Each Dr As DataRow In DtDatos.Rows
|
For Each Dr As DataRow In DtDatos.Rows
|
||||||
|
|||||||
@@ -945,10 +945,12 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
Dim Fecha As DateTime = TxtFechaVigencia.Text.Trim().ToDateTime()
|
Dim Fecha As DateTime = TxtFechaVigencia.Text.Trim().ToDateTime()
|
||||||
Dim FechaI As DateTime = Fecha
|
Dim FechaI As DateTime = Fecha
|
||||||
Dim FechaF As DateTime = Fecha.AddHours(22)
|
Dim FechaF As DateTime = Fecha.AddHours(22)
|
||||||
|
If Fecha > MinFecha Then
|
||||||
TieneError = Not ObjEventos.AddEventoAgenda(CveAgendaTipo, Asunto, Descripcion, Prioridad, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
TieneError = Not ObjEventos.AddEventoAgenda(CveAgendaTipo, Asunto, Descripcion, Prioridad, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||||
RecurrenciaTipo:=RecurrenciaTipo, Frecuencia:=Frecuencia, DiasSemana:=DiasSemana, Dia:=Dias, Mes:=Mes, RecurrenciaFin:=RecurrenciaFin, CveTipoEvento:=CveTipoEvento, Importe:=Importe)
|
RecurrenciaTipo:=RecurrenciaTipo, Frecuencia:=Frecuencia, DiasSemana:=DiasSemana, Dia:=Dias, Mes:=Mes, RecurrenciaFin:=RecurrenciaFin, CveTipoEvento:=CveTipoEvento, Importe:=Importe)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
Return Not TieneError
|
Return Not TieneError
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user