crea venta pero no imprime

This commit is contained in:
carlos
2024-01-17 23:03:46 -06:00
parent fc664fccb6
commit a438eb1914
26 changed files with 481 additions and 125 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
internal class Categoria
public class Categoria
{
public int idCategoria;
public string nombre;
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
public class DetalleVentaModel
{
public int id;
public int cantidad;
public Producto producto;
public DetalleVentaModel(int cantidad, Producto producto, int id = -1)
{
this.cantidad = cantidad;
this.producto = producto;
this.id = id;
}
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
public class Merma
{
public long idMerma;
public string fecha;
public string responsable;
public string razon;
public Merma(long idMerma, string fecha, string responsable, string razon)
{
this.idMerma = idMerma;
this.fecha = fecha;
this.responsable = responsable;
this.razon = razon;
}
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
internal class Producto
public class Producto
{
public int idProducto;
public string nombre;
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
public class VentaModel
{
public int id;
public string fecha;
public decimal total;
public VentaModel(decimal total = 0, int id = -1, string fecha = "") {
this.id = id;
this.fecha = fecha;
this.total = total;
}
}
}