- cambio en PU de usados en almacen
This commit is contained in:
@@ -2832,10 +2832,11 @@ Namespace Modelos
|
|||||||
Dim ImporteConcepto As Decimal = 0
|
Dim ImporteConcepto As Decimal = 0
|
||||||
|
|
||||||
For Each Dr As DataRow In factura.DtMovimientosUsados.Rows
|
For Each Dr As DataRow In factura.DtMovimientosUsados.Rows
|
||||||
|
'garantía y recepción de usados deben de ser valor cero
|
||||||
|
|
||||||
If Not factura.EsGarantia Then
|
'If Not factura.EsGarantia Then
|
||||||
ImporteConcepto = Dr("PU").ToString().ToDecimal()
|
' ImporteConcepto = Dr("PU").ToString().ToDecimal()
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If Not ObjInventario.AddMovimientoDetalle(CveMovimiento, Dr("Cantidad").ToString.ToDecimal, Dr("CveUM").ToString.ToEntero, Dr("CvePS").ToString.ToEntero, ImporteConcepto, CveAF:=Dr("CveAF").ToString.ToEntero, Serie:=Dr("Serie").ToString, Lote:=Dr("Lote").ToString, FechaCaducidad:=Dr("FechaCaducidad").ToString.ToDate, Observaciones:=Dr("Observaciones").ToString, CveUsuarioModifico:=UsuarioActual.CveUsuario) Then
|
If Not ObjInventario.AddMovimientoDetalle(CveMovimiento, Dr("Cantidad").ToString.ToDecimal, Dr("CveUM").ToString.ToEntero, Dr("CvePS").ToString.ToEntero, ImporteConcepto, CveAF:=Dr("CveAF").ToString.ToEntero, Serie:=Dr("Serie").ToString, Lote:=Dr("Lote").ToString, FechaCaducidad:=Dr("FechaCaducidad").ToString.ToDate, Observaciones:=Dr("Observaciones").ToString, CveUsuarioModifico:=UsuarioActual.CveUsuario) Then
|
||||||
'Mensaje = "Error al guardar los movimientos"
|
'Mensaje = "Error al guardar los movimientos"
|
||||||
|
|||||||
Reference in New Issue
Block a user