using System;
using Yavsc.Model.FrontOffice.Catalog.Billing;
namespace Yavsc.Model.FrontOffice.Catalog
{
///
/// Physical product.
///
public class PhysicalProduct : Product
{
///
/// Initializes a new instance of the class.
///
public PhysicalProduct ()
{
}
///
/// Gets or sets the unitary price.
///
/// The unitary price.
public Price UnitaryPrice { get; set; }
#region implemented abstract members of Product
///
/// Gets the sales conditions.
///
/// The sales conditions.
public override string[] GetSalesConditions ()
{
return new string [] { string.Format(
"Prix unitaire : {0} {1}",
UnitaryPrice.Quantity.ToString(),
UnitaryPrice.Unit.Name) };
}
#endregion
///
/// Returns a that represents the current .
///
/// A that represents the current .
public override string ToString ()
{
return string.Format ("[PhysicalProduct: Reference:{0} UnitaryPrice={1}]", Reference, UnitaryPrice);
}
}
}