- cambio en uso de global
This commit is contained in:
@@ -2932,6 +2932,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
Dim RowsCargados As Integer = 0
|
Dim RowsCargados As Integer = 0
|
||||||
Dim RowsNoCargados As Integer = 0
|
Dim RowsNoCargados As Integer = 0
|
||||||
Dim NoPSConSerie As Integer = 0
|
Dim NoPSConSerie As Integer = 0
|
||||||
|
DtMovimientos.Clear()
|
||||||
Try
|
Try
|
||||||
Dim DtPS As DataTable = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa)
|
Dim DtPS As DataTable = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa)
|
||||||
For Each RowExcel As DataRow In dt.Rows
|
For Each RowExcel As DataRow In dt.Rows
|
||||||
@@ -2970,23 +2971,23 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Valido AndAlso (Cantidad > 0 AndAlso RowPS("VentaMinima").ToString.ToDecimal > 0) Then
|
If Valido AndAlso (Cantidad > 0 AndAlso RowPS("VentaMinima").ToString.ToDecimal > 0) Then
|
||||||
If Cantidad Mod RowPS("VentaMinima").ToString.ToDecimal <> 0 Then
|
If Cantidad Mod RowPS("VentaMinima").ToString.ToDecimal <> 0 Then
|
||||||
Valido = False
|
Valido = False
|
||||||
ProductosNoCargados.AppendFormat("{0},", RowPS("PS").ToString())
|
ProductosNoCargados.AppendFormat("{0},", RowPS("PSCodigo").ToString())
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If Valido Then
|
If Valido Then
|
||||||
Valido = ValidaExistencia(Cantidad, CveProducto, CveUnidadMedida, -1, If(Not String.IsNullOrEmpty(Serie), Serie, "-1"), If(Not String.IsNullOrEmpty(Lote), Lote, "-1"), FechaCaducidad)
|
Valido = ValidaExistencia(Cantidad, CveProducto, CveUnidadMedida, -1, If(Not String.IsNullOrEmpty(Serie), Serie, "-1"), If(Not String.IsNullOrEmpty(Lote), Lote, "-1"), FechaCaducidad)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Valido Then
|
If Valido Then
|
||||||
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Lote:=Lote, FechaCaducidad:=FechaCaducidad, Limpia:=False)
|
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Lote:=Lote, FechaCaducidad:=FechaCaducidad, Limpia:=False)
|
||||||
RowsCargados = RowsCargados + 1
|
RowsCargados = RowsCargados + 1
|
||||||
Else
|
Else
|
||||||
RowsNoCargados = RowsNoCargados + 1
|
RowsNoCargados = RowsNoCargados + 1
|
||||||
ProductosNoCargados.AppendFormat("{0},", RowPS("PS").ToString())
|
ProductosNoCargados.AppendFormat("{0},", RowPS("PSCodigo").ToString())
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
RowsNoCargados = RowsNoCargados + 1
|
RowsNoCargados = RowsNoCargados + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user