importe en venta hecho

This commit is contained in:
carlos
2024-06-09 16:55:52 -06:00
parent 91d1661d9a
commit 7569ef0f5a
27 changed files with 987 additions and 74 deletions
+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 DetalleImporte
{
public int fkImporte;
public int catidad;
public decimal precioImporte;
public DetalleImporte(int fkImporte, int cantidad, decimal precioImporte)
{
this.fkImporte = fkImporte;
this.catidad = cantidad;
this.precioImporte = precioImporte;
}
}
}
+25
View File
@@ -0,0 +1,25 @@
using compabetov2.Ventas;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
internal class ImporteModel
{
public int idImporte;
public string tipo;
public decimal precioImporte;
public string img;
public ImporteModel(int idImporte, string tipo, decimal precioImporte, string img) {
this.idImporte = idImporte;
this.tipo = tipo;
this.img = img;
this.precioImporte = precioImporte;
}
}
}
+4 -1
View File
@@ -12,12 +12,15 @@ namespace compabetov2.database.modelos
public string fecha;
public decimal total;
public string responzable;
public int importe;
public VentaModel(decimal total = 0, int id = -1, string fecha = "", string responzable = "") {
public VentaModel(decimal total = 0, int id = -1, string fecha = "", string responzable = "", int importe = 0)
{
this.id = id;
this.fecha = fecha;
this.total = total;
this.responzable = responzable;
this.importe = importe;
}
}
}