2014-07-16 20:35:03 +02:00
|
|
|
using System;
|
2015-02-18 17:34:26 +01:00
|
|
|
using Yavsc.Model.FrontOffice.Billing;
|
2014-07-16 20:35:03 +02:00
|
|
|
|
2015-01-28 15:04:07 +01:00
|
|
|
namespace Yavsc.Model.FrontOffice
|
2014-07-16 20:35:03 +02:00
|
|
|
{
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Physical product.
|
|
|
|
|
/// </summary>
|
2014-07-16 20:35:03 +02:00
|
|
|
public class PhysicalProduct : Product
|
|
|
|
|
{
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/> class.
|
|
|
|
|
/// </summary>
|
2014-07-16 20:35:03 +02:00
|
|
|
public PhysicalProduct ()
|
|
|
|
|
{
|
|
|
|
|
}
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the unitary price.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The unitary price.</value>
|
2014-07-16 20:35:03 +02:00
|
|
|
public Price UnitaryPrice { get; set; }
|
2015-01-29 23:05:57 +01:00
|
|
|
#region implemented abstract members of Product
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the sales conditions.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The sales conditions.</returns>
|
2014-07-16 20:35:03 +02:00
|
|
|
public override string[] GetSalesConditions ()
|
|
|
|
|
{
|
|
|
|
|
return new string [] { string.Format(
|
|
|
|
|
"Prix unitaire : {0} {1}",
|
|
|
|
|
UnitaryPrice.Quantity.ToString(),
|
|
|
|
|
UnitaryPrice.Unit.Name) };
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Returns a <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>A <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/>.</returns>
|
2014-07-16 20:35:03 +02:00
|
|
|
public override string ToString ()
|
|
|
|
|
{
|
2015-01-26 16:44:41 +01:00
|
|
|
return string.Format ("[PhysicalProduct: Reference:{0} UnitaryPrice={1}]", Reference, UnitaryPrice);
|
2014-07-16 20:35:03 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|