narsil/Tanshu.Accounts.Contracts/Data Contracts/RequirementBO.cs
2010-03-02 23:26:21 +05:30

46 lines
1.2 KiB
C#

using System;
using System.Runtime.Serialization;
namespace Tanshu.Accounts.Contracts
{
[DataContract]
public class RequirementBO
{
[DataMember]
public Guid RequirementID { get; set; }
[DataMember]
public Guid LedgerID { get; set; }
[DataMember]
public DateTime Date { get; set; }
[DataMember]
public Guid ProductID { get; set; }
[DataMember]
public decimal Requirement { get; set; }
[DataMember]
public string Remarks { get; set; }
[DataMember]
public byte Status { get; set; }
// Status 0 - Pending, 1 - Ordered, 2 - Cancelled, 3 - Fulfilled
[DataMember]
public DateTime StatusDate { get; set; }
[DataMember]
public decimal Stock { get; set; }
[DataMember]
public decimal Price { get; set; }
[DataMember]
public decimal Ordered { get; set; }
[DataMember]
public decimal OrderRate { get; set; }
[DataMember]
public decimal OrderAmount
{
get
{
return Ordered * OrderRate;
}
}
[DataMember]
public byte[] timestamp { get; set; }
}
}