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:
@ -335,7 +335,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
inv.Product.Units == string.Empty
|
||||
? inv.Product.Name
|
||||
: inv.Product.Name + " (" + inv.Product.Units + ")",
|
||||
Price = inv.Rate,
|
||||
Price = inv.Price,
|
||||
Printed = true,
|
||||
Quantity = inv.Quantity,
|
||||
Tax = inv.Tax,
|
||||
@ -558,16 +558,18 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
return;
|
||||
if (_bill.Count == 1) //new kot only
|
||||
return;
|
||||
if (_billInfo.Void) //voided bills not allowed
|
||||
{
|
||||
MessageBox.Show(string.Format("This Bill is already void.\nReason: {0}", _billInfo.VoidReason), "Bill already Voided", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
var printed = false;
|
||||
if (_billInfo != null)
|
||||
using (var bi = new VoucherBI(false))
|
||||
printed = bi.IsVoucherPrinted(_billInfo.VoucherID);
|
||||
{
|
||||
var voucher = bi.Get(_billInfo.VoucherID);
|
||||
if (voucher.Void)
|
||||
{
|
||||
MessageBox.Show(string.Format("This Bill is already void.\nReason: {0}", _billInfo.VoidReason), "Bill already Voided", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
printed = voucher.Printed;
|
||||
}
|
||||
if (printed && (!Session.IsAllowed(RoleConstants.EDIT_PRINTED_BILL)))
|
||||
return;
|
||||
var amount = _bill.Where(x => x.Key.BillItemType == BillItemType.Product && x.Key.KotID != 0).Sum(x => x.Value.GrossAmount);
|
||||
@ -739,7 +741,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
var i = _billInfo.Kots.Single(x => x.KotID == item.Key.KotID).Inventories.Single(x => x.Product.ProductID == item.Key.ProductID);
|
||||
i.Discount = item.Value.Discount;
|
||||
i.Rate = item.Value.Price;
|
||||
i.Price = item.Value.Price;
|
||||
}
|
||||
}
|
||||
private static Kot GetKot(IEnumerable<KeyValuePair<BillItemKey, BillItemValue>> list)
|
||||
@ -760,7 +762,8 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
Product = item.Value.Product,
|
||||
Quantity = item.Value.Quantity,
|
||||
Rate = item.Value.Price,
|
||||
Price = item.Value.Price,
|
||||
FullPrice = item.Value.FullPrice,
|
||||
Discount = item.Value.Discount,
|
||||
ServiceCharge = item.Value.ServiceCharge,
|
||||
Tax = item.Value.Tax
|
||||
|
||||
Reference in New Issue
Block a user