Misc. forgot all changes

Working on Cashier Checkout
This commit is contained in:
unknown
2011-02-05 01:00:55 +05:30
parent 0f323f8fab
commit 1400f42989
32 changed files with 4591 additions and 255 deletions

View File

@ -9,9 +9,7 @@ namespace Tanshu.Accounts.Entities
public class Inventory
{
public virtual int InventoryID { get; set; }
[NotNull]
public virtual Voucher Voucher { get; set; }
[NotNull]
public virtual Product Product { get; set; }
private decimal quantity;
@ -91,6 +89,13 @@ namespace Tanshu.Accounts.Entities
{ }
}
//public decimal DiscountAmount
//{
// get
// {
// return quantity * rate * (1 + tax) * (1 + serviceCharge) * discount;
// }
//}
protected void CalculateAmount()
{
amount = quantity * rate * (1 + tax) * (1 + serviceCharge) * (1 - discount);