todo lo relacionado a cuentas funcionando
This commit is contained in:
@@ -9,11 +9,11 @@ namespace compabetov2.database.modelos
|
||||
public class DetalleCuentaModel
|
||||
{
|
||||
public int idCuenta;
|
||||
public Producto producto;
|
||||
public Variante producto;
|
||||
public int cantidad;
|
||||
public string nombreProducto;
|
||||
|
||||
public DetalleCuentaModel(Producto producto, int cantidad, int idCuenta =-1, string nombreProducto = "")
|
||||
public DetalleCuentaModel(Variante producto, int cantidad, int idCuenta =-1, string nombreProducto = "")
|
||||
{
|
||||
this.idCuenta = idCuenta;
|
||||
this.producto = producto;
|
||||
|
||||
@@ -25,5 +25,10 @@ namespace compabetov2.database.modelos
|
||||
{
|
||||
return new DetalleEnvioModel(-1,this.producto,this.cantidad);
|
||||
}
|
||||
|
||||
public DetalleCuentaModel convertirADetalleCuenta()
|
||||
{
|
||||
return new DetalleCuentaModel(this.producto, this.cantidad, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user