Beispiel #1
0
 public ClsOrdVenDetalle FnDetalleOrdenVenta(string strCodProd, double dbPrecio, int intCantidad, string strIdLote)
 {
     var entOrdVenDetails = new ClsOrdVenDetalle();
     var objProductLn = new ClsProductoModel();
     var entProducto = objProductLn.FnBuscarProductoPorCodigo(strCodProd);
     entOrdVenDetails.Prod_Id = entProducto.Prod_Id;
     entOrdVenDetails.Lot_Id = strIdLote;
     entOrdVenDetails.PrecDesc_OrdVenDet = dbPrecio;
     entOrdVenDetails.PrecUnit_OrdVenDet = entProducto.PrecioVenta_Prod;
     entOrdVenDetails.SubTotal_OrdVenDet = (entProducto.PrecioVenta_Prod - dbPrecio) * intCantidad;
     entOrdVenDetails.Cant_OrdVenDet = intCantidad;
     entOrdVenDetails.Sucur_Id = 1;
     lstDetailseOrdVent.Add(entOrdVenDetails);
     return entOrdVenDetails;
 }
Beispiel #2
0
 public static TA_OrdVenDetalle AutoMapToTaOrdVenDetalle(ClsOrdVenDetalle objOrdVenDetalle)
 {
     return Mapper.Map<ClsOrdVenDetalle, TA_OrdVenDetalle>(objOrdVenDetalle);
 }
Beispiel #3
0
        private ClsOrdVenDetalle FnMapearEntidadDetalle()
        {
            var objEntidad = new ClsOrdVenDetalle
            {
                Cant_OrdVenDet = 2,
                Lot_Id = "Alop0002",
                Prom_Id = "1",
                PrecDesc_OrdVenDet = 10.2,
                PrecUnit_OrdVenDet = 15,
                Prod_Id = 2,
                SubTotal_OrdVenDet = 10.36,
                Sucur_Id = 1,

            };
            return objEntidad;
        }