Added FullPrice column to display Happy Hour Pricing.
Added Void or Reprint Report. Changed Product.SalePrice -> Price Changed Inventory.Rate -> Price
This commit is contained in:
@ -9,6 +9,7 @@ namespace Tanshu.Accounts.Contracts
|
||||
public int ProductID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public decimal FullPrice { get; set; }
|
||||
public decimal Quantity { get; set; }
|
||||
private decimal _discount;
|
||||
public Product Product { get; private set; }
|
||||
@ -104,7 +105,8 @@ namespace Tanshu.Accounts.Contracts
|
||||
ProductID = product.ProductID;
|
||||
Name = product.Units == string.Empty ? product.Name : product.Name + " (" + product.Units + ")";
|
||||
Quantity = 1;
|
||||
Price = product.SalePrice;
|
||||
Price = product.Price;
|
||||
FullPrice = product.FullPrice;
|
||||
Tax = product.Tax.Rate;
|
||||
ServiceCharge = product.ServiceCharge;
|
||||
Discount = 0;
|
||||
@ -118,6 +120,7 @@ namespace Tanshu.Accounts.Contracts
|
||||
Discount = 0;
|
||||
Name = "== New Kot ==";
|
||||
Price = 0;
|
||||
FullPrice = 0;
|
||||
Printed = true;
|
||||
Quantity = 0;
|
||||
Tax = -1;
|
||||
@ -131,6 +134,7 @@ namespace Tanshu.Accounts.Contracts
|
||||
Discount = 0;
|
||||
Name = string.Format("Kot: {0} / {1:dd-MMM HH:mm} ({2})", kot.Code, kot.Date, kot.User.Name);
|
||||
Price = 0;
|
||||
FullPrice = 0;
|
||||
Printed = true;
|
||||
Quantity = 0;
|
||||
Tax = -1;
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using FluentNHibernate.Mapping;
|
||||
using Tanshu.Accounts.Entities;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
public class ProductDisplay : Product
|
||||
{
|
||||
public virtual decimal Price { get; set; }
|
||||
public virtual string Group { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user