44 lines
675 B
C#
44 lines
675 B
C#
|
12 years ago
|
using System;
|
||
|
|
|
||
|
11 years ago
|
namespace Yavsc.Model.FrontOffice.Billing
|
||
|
12 years ago
|
{
|
||
|
11 years ago
|
/// <summary>
|
||
|
|
/// Price.
|
||
|
|
/// </summary>
|
||
|
12 years ago
|
public class Price: Scalar
|
||
|
|
{
|
||
|
|
decimal quantity;
|
||
|
|
|
||
|
|
#region implemented abstract members of SalesCatalog.Value
|
||
|
11 years ago
|
/// <summary>
|
||
|
|
/// Gets or sets the quantity.
|
||
|
|
/// </summary>
|
||
|
|
/// <value>The quantity.</value>
|
||
|
12 years ago
|
public override object Quantity {
|
||
|
|
get {
|
||
|
|
return quantity;
|
||
|
|
}
|
||
|
|
set {
|
||
|
|
quantity = (decimal) value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
Currency curr;
|
||
|
11 years ago
|
/// <summary>
|
||
|
|
/// Gets or sets the unit.
|
||
|
|
/// </summary>
|
||
|
|
/// <value>The unit.</value>
|
||
|
11 years ago
|
public override Unit Unit {
|
||
|
12 years ago
|
get {
|
||
|
|
return curr;
|
||
|
|
}
|
||
|
|
set {
|
||
|
|
curr = (Currency)value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|