boton vender de la venta venta listo
This commit is contained in:
@@ -10,10 +10,10 @@ namespace compabetov2.database.modelos
|
||||
{
|
||||
public int idVenta;
|
||||
public int cantidad;
|
||||
public Producto producto;
|
||||
public Variante producto;
|
||||
public decimal total;
|
||||
|
||||
public DetalleVentaModel(int cantidad, Producto producto, int id = -1, decimal total = 0)
|
||||
public DetalleVentaModel(int cantidad, Variante producto, int id = -1, decimal total = 0)
|
||||
{
|
||||
this.cantidad = cantidad;
|
||||
this.producto = producto;
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
public class Variante
|
||||
{
|
||||
public int idVariante;
|
||||
public string nombre;
|
||||
public decimal precio;
|
||||
public int cantidad;
|
||||
public string img;
|
||||
public int fkProducto;
|
||||
|
||||
public Variante(int idVariante, string nombre, decimal precio, int cantidad, string img, int fkProducto)
|
||||
{
|
||||
this.idVariante = idVariante;
|
||||
this.nombre = nombre;
|
||||
this.precio = precio;
|
||||
this.cantidad = cantidad;
|
||||
this.img = img;
|
||||
this.fkProducto = fkProducto;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user