public Controlador_ConsultarVenta() { venta = new Venta(); listaVentas = new List <Venta>(); detalleVP = new DetalleVP(); listaDetalleVP = new List <DetalleVP>(); articulo = new Articulo(); encargado = new Encargado(); formaPago = new FormaPago(); listaFormaPago = new ListaFormaPago(); listaFormasDePago = new List <ListaFormaPago>(); entrega = new Entrega(); detalleLogistica = new DetalleLogistica(); listaDetalleLogistica = new List <DetalleLogistica>(); listaDetalleLogisticaAuxiliar = new List <DetalleLogistica>(); clienteMayorista = new ClienteMayorista(); }
public Controlador_NotaCredito() { venta = new Venta(); detalle = new DetalleVP(); listaDetalle = new List <DetalleVP>(); entrega = new Entrega(); listaEntregas = new List <Entrega>(); articulo = new Articulo(); encargado = new Encargado(); notaCredito = new NotaCredito(); listaDetalleNotaCredito = new List <DetalleVP>(); tarjeta = new Tarjeta(); listaTarjeta = new List <Tarjeta>(); listaFormaPago = new ListaFormaPago(); coleccionFormaPago = new List <ListaFormaPago>(); formaPago = new FormaPago(); modeloNotaCredito = Properties.Resources.Modelo_NotaCredito; }
public async Task GetAllAsync() { try { var x = await Repository.GetAllAsync(); ListaFormaPago.Clear(); foreach (var item in x) { if (item.Nombre == "Efectivo") { item.Seleccionar = true; item.Cantidad = 300; } ListaFormaPago.Add(item); } } catch (Exception ex) { throw ex; } }