forked from ErnestoNCarrea/lazaro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/nico9julio/lazaro-resurgens
- Loading branch information
Showing
15 changed files
with
8,233 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Lbl.Articulos | ||
{ | ||
public class ItemReceta | ||
{ | ||
public Lbl.Articulos.Articulo Articulo = null; | ||
public decimal Cantidad = 0; | ||
|
||
public ItemReceta(Lbl.Articulos.Articulo articulo, decimal cantidad) | ||
{ | ||
this.Articulo = articulo; | ||
this.Cantidad = cantidad; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
if (this.Articulo == null) | ||
return ""; | ||
else | ||
return this.Cantidad.ToString() + " " + this.Articulo.ToString(); | ||
} | ||
|
||
public decimal Costo | ||
{ | ||
get | ||
{ | ||
return this.Articulo.Costo * this.Cantidad; | ||
} | ||
} | ||
|
||
public decimal Pvp | ||
{ | ||
get | ||
{ | ||
return this.Articulo.Pvp * this.Cantidad; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.