Movimientos virtuales
This commit is contained in:
@@ -934,7 +934,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
If Not ErrorMovInv Then
|
If Not ErrorMovInv Then
|
||||||
|
|
||||||
'VIRTUAL ENTRADA
|
'VIRTUAL ENTRADA
|
||||||
If RealizarMovimientoVirtual Then
|
If RealizarMovimientoVirtual AndAlso CveAlmacenVirtualEntrada > 0 Then
|
||||||
|
|
||||||
Dim dtvirtual As DataTable = Nothing
|
Dim dtvirtual As DataTable = Nothing
|
||||||
|
|
||||||
@@ -963,6 +963,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim Concepto As String = TxtObservaciones.Text
|
Dim Concepto As String = TxtObservaciones.Text
|
||||||
If Concepto = "" Then Concepto = "Traspaso"
|
If Concepto = "" Then Concepto = "Traspaso"
|
||||||
'AGREGAMOS PREPOLIZAS TRASPASO DIRECTO:
|
'AGREGAMOS PREPOLIZAS TRASPASO DIRECTO:
|
||||||
@@ -1743,13 +1744,13 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteDecimal, TxtObservaciones.Text, 68, TxtObservaciones.Text, Fecha, IdCtaContable, -1,
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, ImporteDecimal, TxtObservaciones.Text, 68, TxtObservaciones.Text, Fecha, IdCtaContable, -1,
|
||||||
CveMovimientoAlmacen:=CveMovimientoEntrada, ImporteMX:=ImporteDecimal) Then
|
CveMovimientoAlmacen:=CveMovimientoEntrada, ImporteMX:=ImporteDecimal) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
TextoError = "Ocurrió un erro al cancelar el traspaso"
|
TextoError = "Ocurrió un error al cancelar el traspaso"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, ImporteDecimal, TxtObservaciones.Text, 68, TxtObservaciones.Text, Fecha, IdCtaContable, -1,
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, ImporteDecimal, TxtObservaciones.Text, 68, TxtObservaciones.Text, Fecha, IdCtaContable, -1,
|
||||||
CveMovimientoAlmacen:=CveMovimientoSalida, ImporteMX:=ImporteDecimal) Then
|
CveMovimientoAlmacen:=CveMovimientoSalida, ImporteMX:=ImporteDecimal) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
TextoError = "Ocurrió un erro al cancelar el traspaso"
|
TextoError = "Ocurrió un error al cancelar el traspaso"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2967,7 +2968,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
Else
|
Else
|
||||||
Str = String.Format(" AND CveSubProyecto = {0} ", DrAlmO("CveSubProyecto"))
|
Str = String.Format(" AND CveSubProyecto = {0} ", DrAlmO("CveSubProyecto"))
|
||||||
End If
|
End If
|
||||||
DdlAlmacenDestino.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltraParametros(String.Format(" CveTipoAlmacen NOT IN (3,4,9,10,11,24,27,28) AND Estatus = 'Activo' {0} ", Str))
|
DdlAlmacenDestino.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltraParametros(String.Format(" CveTipoAlmacen NOT IN (3,4,9,10,11,24,25,28) AND Estatus = 'Activo' {0} ", Str))
|
||||||
DdlAlmacenDestino.DataBind()
|
DdlAlmacenDestino.DataBind()
|
||||||
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user