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);

View File

@ -8,9 +8,7 @@ namespace Tanshu.Accounts.Entities
public class InventoryModifier
{
public virtual int InventoryModifierID { get; set; }
[NotNull]
public virtual Inventory Inventory { get; set; }
[NotNull]
public virtual Modifier Modifier { get; set; }
}
}

View File

@ -11,7 +11,6 @@ namespace Tanshu.Accounts.Entities
public virtual int ModifierID { get; set; }
public virtual string Name { get; set; }
[NotNull]
public virtual IList<ProductGroupModifier> ProductGroupModifiers { get; set; }
public override int GetHashCode()

View File

@ -13,6 +13,7 @@ namespace Tanshu.Accounts.Entities
public virtual Customer Customer { get; set; }
public virtual SettleOption Settled { get; set; }
public virtual bool Void { get; set; }
[AllowNull]
public virtual string VoidReason { get; set; }
public virtual bool Printed { get; set; }
public virtual string KotID { get; set; }