venta envio lista y bug del stcok en vender arreglado
This commit is contained in:
@@ -9,10 +9,10 @@ namespace compabetov2.database.modelos
|
||||
public class DetalleEnvioModel
|
||||
{
|
||||
public int idEnvio;
|
||||
public Producto producto;
|
||||
public Variante producto;
|
||||
public int cantidad;
|
||||
|
||||
public DetalleEnvioModel(int idEnvio, Producto producto, int cantidad)
|
||||
public DetalleEnvioModel(int idEnvio, Variante producto, int cantidad)
|
||||
{
|
||||
this.idEnvio = idEnvio;
|
||||
this.producto = producto;
|
||||
|
||||
@@ -20,5 +20,10 @@ namespace compabetov2.database.modelos
|
||||
this.idVenta = id;
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public DetalleEnvioModel convertirADetalleEnvio()
|
||||
{
|
||||
return new DetalleEnvioModel(-1,this.producto,this.cantidad);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user